Share » Forums » Setup & design » Template caching problems

Template caching problems

Template caching problems

Monday 03 January 2005 8:37:36 am - 6 replies

Modified on Monday 03 January 2005 8:38:22 am by Marek W

Author Message

Joel Hardi

Monday 03 January 2005 10:01:03 am

You may have the Smart Viewcache Cleaning System 'svcs' enabled (it is enabled by default in 3.4). When it is enabled, eZ Publish tries to figure out which nodes need to be refreshed when an object is published, and only clears those nodes.

Since this hasn't worked very well for me in practice, I usually disable it so that eZ Publish will clear all caches on publish.

To disable, create a viewcache.ini.append.php file in /settings/override and put this in it:

[ViewCacheSettings]
# Controls the smart viewcache handler, use enabled or disabled.
# When the handler is disabled the system will clear/expire all cache
# files when objects are published.
SmartCacheClear=disabled

More info here: http://ez.no/ez_publish/documentation/incoming/smart_viewcache_cleaning_system

Marek W

Monday 03 January 2005 10:09:12 am

SmartCache is already disabled, any other possibilities?

Joel Hardi

Monday 03 January 2005 10:28:41 am

Hmm, sorry, that was my best idea. You may want to check file permissions. Debug output doesn't tell you anything useful?

Marek W

Monday 03 January 2005 11:41:45 am

Nope, no clues in debug output, permissions are probably OK, because I can clean cache via admin interface...

Ɓukasz Serwatka

Monday 03 January 2005 11:44:38 am

Hi Marek,

Put this in your /settings/siteaccess/prefix/site.ini files

[ContentSettings]
ViewCaching=disabled

[TemplateSettings]
TemplateCache=enabled
TemplateCompile=enabled

Good practice is to disable ViewCache until you finish built your website.

UPDATE
Look at this
http://www.ez.no/ez_publish/documentation/faq/general/content_does_not_appear_in_admin_after_publish

I hope this help

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jack Rackham

Monday 14 February 2005 6:38:14 am

If you are planning to turn the viewcache on again, I recommend you to look inside you settings/siteaccess/yoursite_admin folder to see if smartcache is enabled on your <b>"yoursite admin"</b>.
* Look for: viewcache.ini.append.php
* Disable SmartCacheClear

<?php /* #?ini charset="iso-8859-1"?

[ViewCacheSettings]
SmartCacheClear=disabled
*/ ?>

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

36 542 Users on board!

Forums menu