Problems with (not so) smarty cache

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
rcp

Problems with (not so) smarty cache

Post by rcp »

Hi!
I'm using CMSMS 0.13 and all is working well except for the smarty cache.
Sometimes when I change a page, the changed page doesn't appea. Doing a Clear Cache in Admin doesn't do anything.
I've tracked the problem to the smarty cache, deleting and creating it again solved the problem -  albeit in a cumbersome way.

I've checked the code and there's a clear_all_cache() call so this must be a bug in smarty itself. Note: the server dates are OK.

Does anyone already solved this irritating problem?

Thanks in advance!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Problems with (not so) smarty cache

Post by Ted »

Between 0.13 and 1.0, we removed the smarty caching.  We still use the compiled templates that smarty creates, but we don't do the extra step of caching the output.  The output caching was actually using more memory and time than it did without it.

Try setting $smarty->caching to false in lib/content.functions.php and see if that works better for you.

Ted
Post Reply

Return to “Developers Discussion”