CraueConfigBundle icon indicating copy to clipboard operation
CraueConfigBundle copied to clipboard

Getting a configuration ignoring cache

Open bvisonl opened this issue 6 years ago • 2 comments

I am not sure if maybe it is me doing something wrong but I have the DoctrineCacheBundleAdapter setup and so far it is working like a charm. However, what happens if in a very specific section I want the configuration bundle to fetch a configuration from the database ignoring the cache?

An example on this is that there is a value that I am constantly changing directly on the database to test something out but since the result is cached it is obviously not working properly.

bvisonl avatar Apr 18 '18 19:04 bvisonl

Well, you could remove the cache from your dev env and use it in staging/prod only.

craue avatar Apr 19 '18 22:04 craue

Yeah but it is more like if there is a value that is constantly changing (let's say that it changes directly in the database from another app that connects to the database..) and you want only that configuration to be loaded ignoring cache

bvisonl avatar Apr 20 '18 12:04 bvisonl