CraueConfigBundle icon indicating copy to clipboard operation
CraueConfigBundle copied to clipboard

Cached value not getting flushed after updated from the web.

Open elvismdev opened this issue 5 years ago • 1 comments

I'm enabling caching using DoctrineCacheBundle and a custom entity where settings are stored.

This entity is also being managed from a basic web backend with easy admin bundle.

When a config value is changed from the web interface, it still returns the old value when called from twig or controllers since it's kept getting cached. I have to manually flush it from the command line.

Why is this value not getting removed from the cache if updated within the app? Might I be missing something else in my setup?

elvismdev avatar Jun 06 '20 19:06 elvismdev

Whenever the value of a setting is updated (either by the built-in controller action or the Config util class), its cached version is updated as well.

Can you try to narrow down the issue? Without seeing some code, I cannot tell what could be wrong there.

craue avatar Jun 08 '20 13:06 craue

Well, it's been over 3 years now but I prepared something in #62. 😂 Are you still interested in checking if it solves the issue, @elvismdev?

craue avatar Aug 07 '23 17:08 craue

@craue I'm good for now. But thanks for checking in! We can close this issue.

elvismdev avatar Aug 07 '23 18:08 elvismdev