Converting an eZ Publish site in full-HTML

Author Message

Thibaut Marin-Cudraz

Friday 05 October 2007 2:17:50 am

Hi, is it possible to convert an eZ Publish 3.10 site in a full-HTML version ? However, it must be possible to make updates of the content of this HTML version. Does anyone has already done this work or have an idea ? Thanks for all

Lazaro Ferreira

Friday 05 October 2007 2:38:13 am

Hi,

Which is the purpose ? , website mirroring ?

Lazaro
http://www.mzbusiness.com

Xavier Serna

Friday 05 October 2007 3:15:34 am

The best thing you can do is generate an static cache version of the site.

More info here: http://ez.no/doc/ez_publish/technical_manual/3_10/reference/configuration_files/site_ini/contentsettings/staticcache

hth!

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

Thibaut Marin-Cudraz

Friday 05 October 2007 7:37:22 am

Thanks for your answers. The aim is to generate a low-charge site for the server, with the possibility to refresh cache page content that have been updated.

About the static cache method, there is in the file staticcache.ini.append.php the following lines :

[CacheSettings]
HostName=localhost
StaticStorageDir=static
MaxCacheDepth=3

I would like to know which means precisly the three attribute above. If someone can help me :). Thanks a lot.

Xavier Serna

Friday 05 October 2007 8:44:46 am

A little research on the docs will help you a lot, here you can find all the info needed to set up static cache:
http://ez.no/doc/ez_publish/technical_manual/3_9/reference/configuration_files/staticcache_ini

and a must read for good understanding of cache mechanism in eZ:
http://ez.no/developer/articles/ez_publish_performance_optimization_part_3_of_3_practical_cache_and_template_solutions/caching_overview

hth!

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

Björn Dieding@xrow.de

Friday 05 October 2007 8:50:49 am

please do not recommend staticcache anymore... there are no advantages that you get instead of using a reverse proxing... use http headers cache control

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

André R.

Friday 05 October 2007 9:02:12 am

For your information there where some changes recently:
* 3.9.3 MaxCacheDepth was not enforced by the code that creates the static cache on demand while publish / editing content, it was only used by the makestaticcache.php script.
* 3.10 / 4.0: Added delayed static cache clearing as a cronjob, simply because clearing static cache can be time consuming.

When you look for documentation on settings, always take a look in the ini files, then the documentation, and then search for it in the forum:

http://pubsvn.ez.no/nextgen/stable/3.10/settings/staticcache.ini

Cronjob:
http://pubsvn.ez.no/nextgen/stable/3.10/cronjobs/staticcache_cleanup.php

Added benefit of this cronjob enhancement is that if you use Akamai / Squid / Varnish (Reverse Proxy), you can make a copy of this cronjob and purge their cache instead of dealing with the static cache..

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Fabrice Girardot

Thursday 11 October 2007 8:59:07 am

Hi,

This is a silly question. Sorry.

If I set StaticStorageDir to go in /home/path_ez/<i>static</i>, after running <i>php bin/php/makestaticcache.php -f -s my_siteaccess</i>, it supposes to write html files in the directory <i>static</i> or maybe in <i>static/my_siteaccess</i>, doesn't it? If not, where are going the html files? I warmed you, silly question…

Other point, I can't deal with <i>HostName=localhost</i>, I've tried either <i>HostName=mysite.com</i>, no mre luck. Did I forget something?

Thank you for your help!

--
Fabrice

Fabrice Girardot

Friday 12 October 2007 1:06:24 am

Hi,

I'm still trying to deal with <i>HostName</i> in [CacheSettings] of my staticcache.ini.append.php. I'd tried <i>HostName=localhost</i> and <i>HostName=mysite.com</i>, with no chance. The debug always says : <i>Could not grab content, is the hostname correct and Apache running?</i>

Any Ideas?

Thx

--
Fabrice

André R.

Friday 12 October 2007 4:25:34 am

Add something like 'echo $source;' on line ~448 in kernel/classes/ezstaticcache.php to find out what url ezp is trying to fetch the content from..

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Fabrice Girardot

Monday 15 October 2007 12:46:50 am

Many thanks André, it works fine! This *capital* information should be by default in the debug!

--
Fabrice

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 15:16:45
Script start
Timing: Jan 18 2025 15:16:45
Module start 'layout'
Timing: Jan 18 2025 15:16:45
Module start 'content'
Timing: Jan 18 2025 15:16:45
Module end 'content'
Timing: Jan 18 2025 15:16:45
Script end

Main resources:

Total runtime0.0157 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.0052 589.1797152.6406
Module start 'layout' 0.00520.0035 741.820339.4766
Module start 'content' 0.00870.0050 781.2969105.3672
Module end 'content' 0.01360.0021 886.664146.3047
Script end 0.0157  932.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002918.3785140.0002
Check MTime0.00117.1579140.0001
Mysql Total
Database connection0.00074.140010.0007
Mysqli_queries0.002918.604230.0010
Looping result0.00000.171110.0000
Template Total0.00169.910.0016
Template load0.00085.380210.0008
Template processing0.00074.509510.0007
Override
Cache load0.00063.690210.0006
General
dbfile0.00042.593980.0001
String conversion0.00000.062140.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.0001 secs