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.

eZ debug

Timing: Jan 19 2025 19:59:38
Script start
Timing: Jan 19 2025 19:59:38
Module start 'layout'
Timing: Jan 19 2025 19:59:38
Module start 'content'
Timing: Jan 19 2025 19:59:39
Module end 'content'
Timing: Jan 19 2025 19:59:39
Script end

Main resources:

Total runtime1.5032 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.1641152.6250
Module start 'layout' 0.00510.0038 741.789139.4609
Module start 'content' 0.00891.4930 781.2500557.2031
Module end 'content' 1.50190.0012 1,338.453116.1563
Script end 1.5031  1,354.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2146160.0002
Check MTime0.00140.0935160.0001
Mysql Total
Database connection0.00070.047110.0007
Mysqli_queries1.447196.2726630.0230
Looping result0.00070.0485610.0000
Template Total1.465797.520.7328
Template load0.00250.163320.0012
Template processing1.463297.343720.7316
Template load and register function0.00010.005110.0001
states
state_id_array0.00180.117910.0018
state_identifier_array0.00340.225220.0017
Override
Cache load0.00210.1407300.0001
Sytem overhead
Fetch class attribute can translate value0.00080.054220.0004
Fetch class attribute name0.00140.091860.0002
XML
Image XML parsing0.00050.035620.0003
class_abstraction
Instantiating content class attribute0.00000.001380.0000
General
dbfile0.00080.0524170.0000
String conversion0.00000.000740.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs