Forums / Developer / Converting an eZ Publish site in full-HTML

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

eZ debug

Timing: Jan 18 2025 10:54:04
Script start
Timing: Jan 18 2025 10:54:04
Module start 'content'
Timing: Jan 18 2025 10:54:05
Module end 'content'
Timing: Jan 18 2025 10:54:05
Script end

Main resources:

Total runtime0.9013 sec
Peak memory usage4,096.0000 KB
Database Queries226

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 587.8438180.8125
Module start 'content' 0.00810.7558 768.6563797.6563
Module end 'content' 0.76400.1372 1,566.3125353.3047
Script end 0.9012  1,919.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4497210.0002
Check MTime0.00160.1760210.0001
Mysql Total
Database connection0.00080.093410.0008
Mysqli_queries0.793087.98172260.0035
Looping result0.00240.26142240.0000
Template Total0.869996.520.4349
Template load0.00210.234620.0011
Template processing0.867796.277020.4339
Template load and register function0.00020.019110.0002
states
state_id_array0.00100.114010.0010
state_identifier_array0.00210.228320.0010
Override
Cache load0.00190.2130590.0000
Sytem overhead
Fetch class attribute can translate value0.00180.199270.0003
Fetch class attribute name0.00170.1875150.0001
XML
Image XML parsing0.00550.614270.0008
class_abstraction
Instantiating content class attribute0.00000.0042190.0000
General
dbfile0.01381.5281460.0003
String conversion0.00000.001030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs