Automatic cache deleten / generation ?

Author Message

Norman Leutner

Wednesday 13 October 2004 12:50:33 am

Hello.

I`m using ez for our intranet.
I have two servers using the same storage-dir and and database.

I`m changing templates within the ez 3.1 system nearly every day therefore I have to delete the cache directory on both servers a few times a day.

Is there a way to delete and generate the cache automatically for the whole site e.g. very day at 12 pm?

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Paul Forsyth

Wednesday 13 October 2004 1:11:31 am

Use a cronjob and then call the clearcache script followed by the template compiler script, eztc.php.

http://www.ez.no/ez_publish/documentation/development/scripting/supplied_scripts/template_compiler

paul

Norman Leutner

Wednesday 13 October 2004 1:53:44 am

The problem is that there aren`t any php-scripts (or php dir) within the bin directory
in the eZ 3.1 version.
Is it possible to use the php-scripts from another ez-version?
(Webserver is running on Windows)

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Paul Forsyth

Wednesday 13 October 2004 3:31:01 am

I wouldnt recomment it because those scripts use new features.

However, you could delete the contents of var/cache and still use a spider tool like httrack,wget or others to rebuild the cache for you. Use cron to automate this. Im not sure if cron is on windows, doesnt it use the 'at' feature...?

paul

Norman Leutner

Wednesday 13 October 2004 6:05:26 am

Seems like using other scripts won`t work with 3.1.

In gereral under windows you can use at-jobs (scheduled tasks) to run php-scripts via commandline.
(e.g. F:\ezpublish>e:\php\php.exe runcronjobs.php)

I`ll write a batch file to clear the cache and give the wget spider a try.

Thanks

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

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