Details
-
Bug
-
Resolution: Fixed
-
High
-
5.3.3, 2014.11, 5.4.0-beta1
Description
If you disable ViewCaching in legacy, Symfony cache won't be cleaned.
For example, if you check eZContentCacheManager::clearObjectViewCacheIfNeeded, you will see:
if ( eZINI::instance()->variable( 'ContentSettings', 'ViewCaching' ) !== 'enabled' ) return;
That means the Symfony won't be notified cache needs to be cleaned.
Steps to Reproduce
- Disable ViewCaching in override/site.ini.append.php
- Add the attached PHP command to your bundle
- Create an article
- Execute the attached php command
- Check the displayed versions
- Edit and publish the article
- Execute the attached php command
- Confirm the displayed versions didn't change