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

Async publishing reverts expiry.php

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. Enable async publishing. Go to /settings/override/content.ini.append.php and add:

      [PublishingSettings]
      AsynchronousPublishing=enabled
      

      2. Clear cache so that setting take effect;
      3. Run ezasynchronouspublisher.php:

      $php bin/php/ezasynchronouspublisher.php --daemon
      

      4. Examine contents of expiry.php:

      $cat var/ezdemo_site/cache/expiry.php
      <?php
      $Timestamps = array (
        'class-identifier-cache' => 1420742423,
        'user-info-cache' => 1420742422,
        'image-manager-alias' => 1420742422,
        'content-tree-menu' => 1420742422,
        'active-extensions-cache' => 1420742422,
        'state-limitations' => 1417191404,
        'content-view-cache' => 1420742422,
        'global-template-block-cache' => 1420742422,
        'ts-translation-cache' => 1420742422,
        'content-complex-viewmode-cache' => 1420742765,
        'template-block-cache' => 1420742765,
      );
      

      5. Clear cache. For issue reproduction, it sufficed to clear all caches from admin interface;
      6. Examine contents of expiry.php:

      $cat var/ezdemo_site/cache/expiry.php
      <?php
      $Timestamps = array (
        'class-identifier-cache' => 1420742839,
        'user-info-cache' => 1420742838,
        'image-manager-alias' => 1420742838,
        'content-tree-menu' => 1420742838,
        'active-extensions-cache' => 1420742838,
        'state-limitations' => 1417191404,
        'content-view-cache' => 1420742838,
        'global-template-block-cache' => 1420742838,
        'ts-translation-cache' => 1420742838,
        'content-complex-viewmode-cache' => 1420742765,
        'template-block-cache' => 1420742765,
      );
      

      7. Go to admin interface and publish a new content or edit an existing one;
      8. Examine contents of expiry.php:

      $cat var/ezdemo_site/cache/expiry.php
      <?php
      $Timestamps = array (
        'class-identifier-cache' => 1420742423,
        'user-info-cache' => 1420742422,
        'image-manager-alias' => 1420742422,
        'content-tree-menu' => 1420742422,
        'active-extensions-cache' => 1420742422,
        'state-limitations' => 1417191404,
        'content-view-cache' => 1420742422,
        'global-template-block-cache' => 1420742422,
        'ts-translation-cache' => 1420742422,
        'content-complex-viewmode-cache' => 1420742867,
        'template-block-cache' => 1420742867,
      );
      

      expiry.php was reverted to its original state, which is wrong.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: