Forums / Developer / Update page?

Update page?

Author Message

Roberto Sacchi

Wednesday 28 January 2009 4:10:31 am

I've a frontpage object in which I've inserted a custom tag.

When I modify the template associate to that custom tag,
the frontpage object is update only when I see it in admin panel.

When I load that node from URL, the old version appears.

I've tried to empty all cache but it still doesn't work.
What I've to do?

Thanks

Rob

Jérôme Vieilledent

Wednesday 28 January 2009 1:10:48 pm

Hi Roberto

It seems to be a cache problem. Do you have a cache-block or something equivalent on that part ?
Try first to disable <i>ViewCaching</i> in your site.ini and clear the cache.
Also try to purge the cache with this command for the root of your eZ Publish instance :

php bin/php/ezcache.php --clear-all --purge

Roberto Sacchi

Thursday 29 January 2009 4:50:43 am

thanks for answering.

The ViewCaching parameter is useful (now pages are updated when I change template).

But The main problem stile remains:

when I load the object page,
the custom tag is associated to a template which fetch some data.

In the preview, the fetching is right (I can see fetched data),
while in the showing page no data are show.
Please help :P

Jérôme Vieilledent

Thursday 29 January 2009 5:14:23 am

OK, Don't forget to re-enable the ViewCaching when you're finished. EZ Publish is designed to smartly clear the cache when you publish a new version of an objet. Please browse the documentation (start here : http://ez.no/doc/ez_publish/technical_manual/4_0/features/view_caching and the sub-subjects) to find what suits best for you.

Can you please post your custom tag template code here so I may help you ?
Are you sure that your template is loaded ? You can check it by activating the template debug and then looking at your generated HTML source code.

Roberto Sacchi

Thursday 29 January 2009 6:19:23 am

ok now It works!

The template was correctly written.
I had an unknown problem with some objects...

when I tried to fetch them nothing appears....
so I delete those objects and try to create again them. (I create a module to create them)
Now they are fetched correctly.

About view caching, I think I need to keep it disable because I always need update fetched data when I load a frontpage object.

Thanks for all your advices and help

Rob

Jérôme Vieilledent

Thursday 29 January 2009 7:09:58 am

You're welcome ! :-)

Be careful with your ViewCache. It's never a good idea to turn it off in production (except if you have to show a user profile for example)
Use ViewCache tuning and SmartCache to be sure to get <i>fresh</i> content

eZ debug

Timing: Jan 31 2025 01:29:45
Script start
Timing: Jan 31 2025 01:29:45
Module start 'content'
Timing: Jan 31 2025 01:29:45
Module end 'content'
Timing: Jan 31 2025 01:29:46
Script end

Main resources:

Total runtime0.2129 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0105 587.7578370.3125
Module start 'content' 0.01050.0208 958.07031,005.5859
Module end 'content' 0.03130.1815 1,963.65633,893.8750
Script end 0.2128  5,857.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00532.4717200.0003
Check MTime0.00150.7246200.0001
Mysql Total
Database connection0.00180.864610.0018
Mysqli_queries0.100046.96121410.0007
Looping result0.00150.69811390.0000
Template Total0.181185.110.1811
Template load0.00070.338610.0007
Template processing0.180484.714410.1804
Override
Cache load0.00050.235810.0005
Sytem overhead
Fetch class attribute can translate value0.00180.843610.0018
XML
Image XML parsing0.00030.123110.0003
General
dbfile0.01034.8333200.0005
String conversion0.00000.002430.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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