-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix of disabling the Dashboard widget cache #14467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I think we should also make some docs updates about this too, even if it's just to explain the numbers to use? |
Or shall we update the functionality so it would work according to the tooltip? |
So, the functionality should be changed so that 0 results in disabled cache? |
Yes, I think so. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 5.2 #14467 +/- ##
============================================
+ Coverage 63.45% 63.65% +0.19%
- Complexity 34636 34659 +23
============================================
Files 2273 2273
Lines 103603 103691 +88
============================================
+ Hits 65741 66002 +261
+ Misses 37862 37689 -173
🚀 New features to boost your workflow:
|
@escopecz How about this solution? I also changed the ConfigType a bit so that one can only enter integers >= 0 there |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that values 0
and -1
do the same thing which is disabling the cache. Is that correct? The PR description isn't up to date, right?
@escopecz The PR description is now up-to-date. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look good to me. Thanks for taking care of this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested the PR, and it works as expected. Thanks for the PR!
Description
This PR solves the issue #14017. If changing the cached data timeout in the system settings to 0, the cache for dashboard widgets should be disabled (according to the description), however it results in an endless cache. Instead, disabling the cache works when setting the cached data timeout to -1. The logic was now changed so that 0 results in disabled cache. Also it's ensured that you can just enter full numbers greater than or equal 0 in the cached data timeout field (System Settings -> Pagination and data display --> Cached data timeout)
📋 Steps to test this PR: