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

    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

        Issue Links

          Activity

          Hide
          Eduardo Fernandes (Inactive) added a comment - - edited

          @Team,

          Please notice Configuring the view cache advises the customer to disable ViewCaching in development environments. And development environments does not mean the default dev* environment. Since Symfony won't ever be notified to clear the caches, there will be cache.

          Show
          Eduardo Fernandes (Inactive) added a comment - - edited @Team, Please notice Configuring the view cache advises the customer to disable ViewCaching in development environments. And development environments does not mean the default dev * environment. Since Symfony won't ever be notified to clear the caches, there will be cache.
          Show
          Jérôme Vieilledent (Inactive) added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/1086
          Show
          Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/267971dc906642fbccd8495cd8df47894fbd7cc0
          Hide
          Pedro Resende (Inactive) added a comment -

          Tested and approved by Q.A.

          Show
          Pedro Resende (Inactive) added a comment - Tested and approved by Q.A.

            People

            • Assignee:
              Unassigned
              Reporter:
              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