You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to clear the cache only for one user.
Example:
Each user has it's own list of items which can edit (add or remove element). Taking this actions will not be often, maybe once a few months so I would like to cache the response for some time. Now, when the user will add or remove new item, I would like to clear the cache so the user could get the newest changes right after.
The documentation says that "Logged in users will each have their own separate cache" and as far as I understand ResponseCache::clear();
method clear all the cache, for all users at once.
Is there any way to clear cache only for currently logged in user?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to clear the cache only for one user.
Example:
Each user has it's own list of items which can edit (add or remove element). Taking this actions will not be often, maybe once a few months so I would like to cache the response for some time. Now, when the user will add or remove new item, I would like to clear the cache so the user could get the newest changes right after.
The documentation says that "Logged in users will each have their own separate cache" and as far as I understand
ResponseCache::clear();
method clear all the cache, for all users at once.
Is there any way to clear cache only for currently logged in user?
Beta Was this translation helpful? Give feedback.
All reactions