Static cache update

Author Message

Christian Johansen

Monday 03 July 2006 2:07:19 am

I'm having a wierd problem on an eZ Publish 3.8.1 installation. I set up caching in viewcache.ini.append. For one class it performs these operations: object, parent, siblings, maxparents=3. With viewcache enabled, everything works fine:

Create new node - every cache is cleared and regenerated as intended
Edit node - every cache is cleared
Delete node - every cache is cleared

But when I enable static cache I get the following:
Create new node - new static file generated for new node, cache of parent and siblings not updated if they already exist. If I delete the parent static cache file, it is generated. In addition, loads of files like index.html.05ad3a766d3ddfeda130a3a8ebd297d0 pop up in the static file directory - it seems like these carry newer information than the actual index.html file.

Edit node - no update, just more md5-style filenames
Delete - same as above

How can I have the static cache be overwritten when objects are created edited and deleted?

Vitaly Puzrin

Wednesday 05 July 2006 6:44:25 am

I have the same problem. Before 3.8.0 all was fine.

Now, "makestaticcache.php -f" does not delete static files if those exists. Why? Is it a bug, or we have to use additional siteaccess with no rewrite riles for static files, when generating static cache?

As temporary solition, I've taken some sources from old EZ version.

Christian Johansen

Wednesday 05 July 2006 7:04:08 am

Interesting. This was coincidently my first time with eZP 3.8. Which files did you "downgrade" to version 3.7 in order to make it work? Do you also get all the md5-style filenames in your static directory?

Peter Putzer

Wednesday 05 July 2006 9:11:55 am

I haven't checked whether it completely fixes the problem, but have a look at my patch for bug #6792 at http://ez.no/community/bugs/static_cache_and_old_urls. It should resolve at least the issue of static cache files not getting replaced with new content.

Greetings,
Peter

Accessible website starting from eZ publish 3.0 (currently: 4.1.0): http://pluspunkt.at

Vitaly Puzrin

Wednesday 05 July 2006 9:20:06 am

Christian, I've downgraded file "kernel/classes/ezstaticcache.php" to 3.7.5

Peter's patch do the similar thing, and even more. Shame on me, I'm too lazy to patch files :)

Christian Johansen

Tuesday 05 September 2006 7:32:00 am

Has this problem not been fixed? I just experienced the same thing with 3.8.3 (3.8.1 last time)

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 18 2025 19:23:10
Script start
Timing: Jan 18 2025 19:23:10
Module start 'layout'
Timing: Jan 18 2025 19:23:10
Module start 'content'
Timing: Jan 18 2025 19:23:11
Module end 'content'
Timing: Jan 18 2025 19:23:11
Script end

Main resources:

Total runtime0.6974 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 589.0234152.6250
Module start 'layout' 0.00800.0040 741.648439.4453
Module start 'content' 0.01210.6836 781.0938599.3594
Module end 'content' 0.69570.0017 1,380.453112.1719
Script end 0.6973  1,392.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5498160.0002
Check MTime0.00180.2583160.0001
Mysql Total
Database connection0.00150.209810.0015
Mysqli_queries0.627689.9910680.0092
Looping result0.00090.1235660.0000
Template Total0.657294.220.3286
Template load0.00270.387220.0014
Template processing0.654493.843020.3272
Template load and register function0.00030.037910.0003
states
state_id_array0.00120.172410.0012
state_identifier_array0.00110.151720.0005
Override
Cache load0.00230.3240280.0001
Sytem overhead
Fetch class attribute can translate value0.00080.117330.0003
Fetch class attribute name0.00170.248570.0002
XML
Image XML parsing0.00120.178130.0004
class_abstraction
Instantiating content class attribute0.00000.002170.0000
General
dbfile0.00110.1522160.0001
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs