Workflow approval not clearing smart cache

Author Message

Tom Nason

Tuesday 08 December 2009 10:36:34 pm

I have 3 levels of admin user:

Contributor - can update existing pages, add images to gallery
Editor - can add pages + contributor access
Publisher - can approve changes made by contributor/editor + editor access

Smart cache is used to clear the cache for pages which contain embedded image galleries.

My problem is that clearing of the smart cache is not triggerred by the workflow cronjob. When updating gallery images using the Publisher role changes can be seen straight away. If an Editor or Contributor role is used and then the workflow cron is run the cache is not cleared and new items dont appear on the front end(they do become available in the admin interface). Manually clearing the cache causes them to appear but id really like to avoid this.

The clearObjectViewCache method in kernel/content/operation_definition.php doesnt seem to be called when using the workflow process.

Has anybody encountered this before? Is it a bug or could there be a configuration issue?

Any and all help appreciated.

Thanks

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 00:44:10
Script start
Timing: Jan 30 2025 00:44:10
Module start 'layout'
Timing: Jan 30 2025 00:44:10
Module start 'content'
Timing: Jan 30 2025 00:44:10
Module end 'content'
Timing: Jan 30 2025 00:44:10
Script end

Main resources:

Total runtime0.0123 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.2656151.2266
Module start 'layout' 0.00430.0021 739.492236.6797
Module start 'content' 0.00640.0047 776.171986.0781
Module end 'content' 0.01110.0012 862.250029.9922
Script end 0.0123  892.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002016.1909140.0001
Check MTime0.00108.1855140.0001
Mysql Total
Database connection0.00086.311010.0008
Mysqli_queries0.002117.273430.0007
Looping result0.00000.065810.0000
Template Total0.00097.210.0009
Template load0.00075.881110.0007
Template processing0.00021.299410.0002
Override
Cache load0.00054.281610.0005
General
dbfile0.00118.861380.0001
String conversion0.00000.046540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs