Adding Cache::flexible to the metrics #6944
Unanswered
mostafa-rz
asked this question in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
The metrics are the first page visited when someone logs in. Currently, I can cache them, but the underlying function is
Cache::remember. If the cache key isn't set, the page load time is affected. Can you please add the feature to useCache::flexible? I saw the source code, and introducingstaleFor()method, same as thecacheFor(), and reacting to it if it is set, can be easily done. It is also backward compatible.Beta Was this translation helpful? Give feedback.
All reactions