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

Cache not being cleared after workflow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Confirmed
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 5.2
    • Fix Version/s: None
    • Component/s: Legacy > Workflows
    • Labels:

      Description

      If you create a wait until date workflow, the cache won't be cleared after the publishing, giving the idea the workflow failed.

      Steps to Reproduce

      Set the cronjob

      1. Create a new workflow named TestDateWrk
      2. Add an Wait until date Event for class Article and Publish Date attribute.
      3. Set TestDateWrk workflow in Content\Publish\Before trigger.

      Create the test content

      1. Create a new article and publish it with an empty Publish Date attribute.
      2. Edit the article
        • At the text current time + 5 min to the body
        • Set the Publish Date attribute to be current time + 5 min
      3. Publish it

      Execute the cronjob

      1. Execute the cronjob just after publishing the object:
        php runcronjobs.php frequent
      2. Confirm in the console you have pending items

        0 out of 1 processes was finished
        Completing cronjobs/workflow.php at: 28/03/2014 11:21 am
        Elapsed time: 00:00:00

      3. When the time is right for the first draft ( current time + 5 min ), execute the cronjob again:
      4. Confirm in the console that the cronjob published the draft

        1 out of 1 processes was finished
        Completing cronjobs/workflow.php at: 28/03/2014 11:21 am
        Elapsed time: 00:00:00

      5. In the frontend, check the article body text. Because of the bug, it will look like it wasn't publish since the body text won't have current time + 5 min.
      6. Clear the caches
      7. In the frontend, check the article body text again. Now it will display current time + 5 min.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: