Author Topic

Brandon Chambers

Friday 03 June 2011 10:18:23 am

Comment68457

It seems you're asking for the entire template to be re-compiled..? Have you considered the {cache-block} way?

http://share.ez.no/learn/ez-publish/ez-publish-performance-optimization-part-3-of-3-practical-cache-and-template-solutions/%28page%29/9

If you need to re-compile the templates entirely I suggest using a cronjob to clear template cache every 30 minutes with the ezcache script from the CLI:

 php bin/php/ezcache.php --clear-tag=template

Then use the template compile script.

 php bin/php/eztc.php

I did a quick search in eztc.php and I don't think it triggers caches to be cleared but I could be wrong. So this should cover everything, except check eztc.php for the correct options you want.

Here's the cache doc page:

http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Scripts/Generic/ezcache.php

Unfortunately I couldn't find any documentation on the eztc script except for an old page cached by Google:

http://webcache.googleusercontent.com/search?q=cache:ZDsZqD4VjtAJ:https://85.19.74.108/Exponential/documentation/development/scripting/supplied_scripts/template_compiler+ez+publish+template+compile+script&cd=1&hl=en&ct=clnk&gl=us&source=www.google.com

 

I hope this helps!

Brandon Chambers
brandon@granitehorizon.com
blog: http://blog.divdesigns.com
Granite Horizon / http://granitehorizon.com