Skip to content
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

Cached value not getting flushed after updated from the web. #54

Closed
elvismdev opened this issue Jun 6, 2020 · 3 comments
Closed

Cached value not getting flushed after updated from the web. #54

elvismdev opened this issue Jun 6, 2020 · 3 comments

Comments

@elvismdev
Copy link

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?

@craue
Copy link
Owner

craue commented Jun 8, 2020

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
Copy link
Owner

craue commented Aug 7, 2023

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?

@elvismdev
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants