Forums / Setup & design / SmartViewCache problem !
francis Nart
Monday 21 February 2005 2:15:28 am
Hi, we're using ez 3.5 In the file "settings / viewcache.ini" SmartCacheClear is enabled : SmartCacheClear=enabled tHere is the content of that file
"settings / override / viewcache.ini.append.php" : [ViewCacheSettings] SmartCacheClear=enabled [rubrique] ClearCacheMethod=clear_object_caches_only [actualite] DependentClassIdentifier[] DependentClassIdentifier[]=rubrique ClearCacheMethod=clear_object_and_parent_nodes_caches [article] DependentClassIdentifier[] DependentClassIdentifier[]=rubrique ClearCacheMethod=clear_object_and_parent_nodes_caches [reference] DependentClassIdentifier[] DependentClassIdentifier[]=rubrique ClearCacheMethod=clear_object_and_relating_objects_caches [lien_web] DependentClassIdentifier[] DependentClassIdentifier[]=reference ClearCacheMethod=clear_object_and_parent_nodes_caches [image] DependentClassIdentifier[] DependentClassIdentifier[]=reference ClearCacheMethod=clear_object_and_parent_nodes_caches [fichier_flash] DependentClassIdentifier[] DependentClassIdentifier[]=reference DependentClassIdentifier[]=articleClearCacheMethod=clear_object_and_parent_nodes_caches
When we try to add for example an "actualité" in the "actualite", the objetc does not appear on the website.We need to clear the cache to view it. So apparently, we're missing something.
Any clue ?
Jack Rackham
Monday 21 February 2005 5:07:09 pm
First I don't think you need to enable SmartCache in the settings/viewcache.ini, because when you upgrade EZ your SmartCache settings will be lost. Anyway in the head of the file it is written: # # NOTE: It is not recommended to edit this files directly, instead# a file in override should be created for setting the
Second look inside your <b>setting/siteaccess/yoursite</b> and <b>setting/siteaccess/yoursite_admin</b>, if viewcache.ini.append.php exists in any of this folders delete it because It overrides you override.In my case it simply said "[ViewCacheSettings] SmartCacheClear=enabled" so when I edited a article no cache was cleared at all.
Tuesday 22 February 2005 6:11:42 am
but we did all this !and in fact what you see written above is of course a copy of the override file !
But apparently, as you just mentioned it, in your case it doesn't work for when you edit an article it should refresh the cache correctly !
francis.