Forums / Setup & design / Static cache update

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)