Static Publishing

Author Message

Gerard Rowe

Sunday 07 December 2003 11:10:59 am

Is there a way to publish something as static (fully evaluated template) so that is doesn't go through template processing?

Thanks.

Nils Sanders

Sunday 18 January 2004 7:26:42 pm

hi, no response yet? I am also very interested in this topic...

Bård Farstad

Monday 19 January 2004 12:09:46 am

eZ publish will automatically generate static parts of the content. E.g. the contents of an article will be stored in a .html file the first time it's requested. On the second request no processing is done for this.

The same applies for the content in pagelayout which is caced by the cache-block function. However some dynamic processing is always done by in the pagelayout.

There is different ways of doing a pure static site with eZ publish. There is one simple solution in our contributions archive: http://ez.no/developer/ez_publish_3/contributions/ez_sitecopier

This works great for many sites. You can choose which pages to generate static and POST pages will still work ( e.g. search/add comment ).

--bård

Documentation: http://ez.no/doc

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 22:29:52
Script start
Timing: Jan 18 2025 22:29:52
Module start 'layout'
Timing: Jan 18 2025 22:29:52
Module start 'content'
Timing: Jan 18 2025 22:29:52
Module end 'content'
Timing: Jan 18 2025 22:29:52
Script end

Main resources:

Total runtime0.0182 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 589.2344152.6094
Module start 'layout' 0.00690.0037 741.843839.4141
Module start 'content' 0.01070.0056 781.257889.1797
Module end 'content' 0.01620.0020 870.437530.3047
Script end 0.0182  900.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002815.1021140.0002
Check MTime0.00126.3218140.0001
Mysql Total
Database connection0.00137.279110.0013
Mysqli_queries0.003016.587830.0010
Looping result0.00000.088910.0000
Template Total0.00168.910.0016
Template load0.00094.990510.0009
Template processing0.00073.872310.0007
Override
Cache load0.00063.511410.0006
General
dbfile0.00042.057180.0000
String conversion0.00000.173940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs