Update page?

Update page?

Wednesday 28 January 2009 4:10:31 am - 5 replies

Author Message

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

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.