Skip to content

Add a config setting to make wfd_meta-based caches expire immediately (#28)

Compare
Choose a tag to compare
@mpdude mpdude released this 30 Nov 08:19
· 35 commits to master since this release
c7a2e2b

This release adds a new configuration setting:

# config_test.yml
webfactory_wfd_meta:
    always_expire_wfd_meta_resources: true

With this setting, ConfigCache instances (Symfony Router, Translator, ... maybe?) that include WfdMetaResource instances will expire immediately.

This is helpful e. g. in functional tests, where you have database-backed routes, translations or similar: You can change the database values and no longer need to think about the ConfigCaches or poke wfd_meta to make the changes effective.