Page 1 of 1

Clear cache and Cataloger

Posted: Wed Mar 17, 2010 9:15 am
by jackgittes
Hi there,

I am working with CMSMS version 1.6.7. I have a very annoying  problem concerning the Cataloger. For example every time I change something into a Cataloger template I always have to clear the cache before the changes are visible. The same issue is when I add images to a cataloger page (Item / category). I only see them online after clearing the cache.

I noticed some similar problems from other users on this forum. One solution was to make a User Defined Tag that automatically clears the cache. But is that a real solution? I mean, there has to be a cause?

Greets,

Jan

Re: Clear cache and Cataloger

Posted: Fri Apr 09, 2010 3:12 am
by goodwebsites
same problem for the category page navigation. only works when clearing the cache...

Re: Clear cache and Cataloger

Posted: Sun Apr 11, 2010 10:04 am
by goodwebsites
had thought about that solution as well. unfortunately the cataloger pages don't have the option to switch off the cache (like on normal pages). Or is there another setting (tweak/hack) to get the same result?

Re: Clear cache and Cataloger

Posted: Tue May 11, 2010 10:11 pm
by jwaldeck
Guys, read this http://forum.cmsmadesimple.org/index.ph ... 884.0.html

1. Define a UDT
2. Call the UDT on the event manager
3. Done

Excerpt:

Extentions >> User Defined Tags
Create a User Defined Tag called f.i. clear_cache with the content:

Code:

Code: Select all

	global $gCms;
	$contentops =& $gCms->GetContentOperations();
	$contentops->ClearCache();


Extentions >> Event Manager
Call the UDT on an event.
In your case probably: ContentEditPost - Sent after edits to content are saved

Re: Clear cache and Cataloger

Posted: Wed May 12, 2010 5:09 am
by ellein
goodwebsites wrote: had thought about that solution as well. unfortunately the cataloger pages don't have the option to switch off the cache (like on normal pages). Or is there another setting (tweak/hack) to get the same result?
Yes. I have write patch for making catalog gategory pages cachable like other content pages.
Look here: http://dev.cmsmadesimple.org/bug/view/4828