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

SiteAccess is not initialized for CacheFactory service when running ezpublish:legacy:script console command

    XMLWordPrintable

Details

    Description

      I have an eZ Platform 2.3 + Legacy Bridge with content approval setup and all of my siteaccesses have use the cache.redis cache pool.
      Unfortunately when I run the following command:

      bin/console ezpublish:legacy:script runcronjobs.php --siteaccess ngadminui frequent

      redis persistent cache is not cleared as eZ\Bundle\EzPublishCoreBundle\ApiLoader\CacheFactory::getCachePool(ConfigResolverInterface $configResolver) is invoked before siteaccess is matched and therefore the cache pool is cache.app.

      This is a major bug and should be fixed asap.

      The only workaround I have found is to set the 'ezsettings.default.cache_service_name' parameter to 'cache.redis', but this is just a workaround.

      Attachments

        Activity

          People

            Unassigned Unassigned
            salvatore.pollaci@innoteam.it salvatore.pollaci@innoteam.it
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: