How to precalculate all caches with cronjobs ?

Author Message

H-Works Agency

Wednesday 31 January 2007 4:22:12 am

Hi all

My site is extremely slow when pages are asked for the first time.

Is there a way to create a cronjob that will create all caches at night with a cron job ?

Thanx in advance.

Martin

EZP is Great

Kristian Hole

Wednesday 31 January 2007 7:36:28 am

I have created this extension with rebuilding cache in mind:

http://ez.no/community/contribs/hacks/updatecache

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

H-Works Agency

Wednesday 31 January 2007 10:09:24 am

Cool thanx a lot i will check this out.

Martin

EZP is Great

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

Main resources:

Total runtime0.6489 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.4922152.6406
Module start 'layout' 0.00540.0043 742.132839.4766
Module start 'content' 0.00970.6376 781.6094534.4922
Module end 'content' 0.64730.0015 1,316.101612.1250
Script end 0.6488  1,328.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5253160.0002
Check MTime0.00150.2344160.0001
Mysql Total
Database connection0.00070.106210.0007
Mysqli_queries0.596891.9718570.0105
Looping result0.00060.0848550.0000
Template Total0.614294.720.3071
Template load0.00210.329220.0011
Template processing0.612194.325320.3060
Template load and register function0.00010.022010.0001
states
state_id_array0.00110.169210.0011
state_identifier_array0.00110.175720.0006
Override
Cache load0.00180.2780170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.091920.0003
Fetch class attribute name0.00110.172450.0002
XML
Image XML parsing0.00110.173420.0006
class_abstraction
Instantiating content class attribute0.00000.001960.0000
General
dbfile0.00100.1566230.0000
String conversion0.00000.001440.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs