Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23552

Symfony cache won't be cleaned if Legacy ViewCaching is disabled

    XMLWordPrintable

Details

    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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              eduardo.fernandes-obsolete@ez.no Eduardo Fernandes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m