Replies: 1 comment 1 reply
-
|
Hi, There are two caches in Lychee taking action. The browser side cache which uses https://www.npmjs.com/package/axios-cache-interceptor You can see it in action here: https://github.com/LycheeOrg/Lychee/blob/master/resources/js/services/album-service.ts#L84 It is usually cleared manually when doing actiongs on the frontend (or simply pressing F5). And the serverside cache:
To be honest, the implementation is not as ironclad as I wished it to be and probably need to be refactored. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I've been experimenting with the caching feature that was introduced in Lychee and I'm trying to better understand when the cache is expected to be invalidated.
In a few cases, the UI doesn't seem to update until I manually click 'Flush cache', for example:
On the other hand, deleting an album does seem to update the UI immediately.
Is this behaviour expected?
For reference, I'm currently running
v6.10.4. I haven’t had time to upgrade tov7yet, so it's also possible this has already been addressed there.Any clarification would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions