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

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