Hello,
I'm developping module Album which introduces a new content type to display photo albums.
My question is : how is it possible to manage template cache with modules ?
If I indicates that the content is cached, it will not take into account further modifications in albums (the page is not modified when we modify the content of an album).
I saw that there is a function in module API called "IsDatabaseTemplateCached". Is anyone able to document this function, or indicate an example of use of this function ?
Thanks in advance,
Dam
Module template cache
Re: Module template cache
something I want to know as well!
Good luck
Good luck
- Elijah Lofgren
- Power Poster
- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
Re: Module template cache
It looks like the smarty template cache was disabled 8 days ago. 
See: http://viewsvn.cmsmadesimple.org/viewsv ... 2&view=log
That means once 0.13 beta 2 comes out (pretty soon from what I hear) we'll no longer have to worry about Smarty caching our pages.

See: http://viewsvn.cmsmadesimple.org/viewsv ... 2&view=log
That means once 0.13 beta 2 comes out (pretty soon from what I hear) we'll no longer have to worry about Smarty caching our pages.

Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. 

Re: Module template cache
WellElijah Lofgren wrote: It looks like the smarty template cache was disabled 8 days ago.
See: http://viewsvn.cmsmadesimple.org/viewsv ... 2&view=log
That means once 0.13 beta 2 comes out (pretty soon from what I hear) we'll no longer have to worry about Smarty caching our pages.![]()

What will be the impact on site speed ?
Re: Module template cache
Surprisingly, it's faster. Because we're grabbing templates from the database and compiling them first (and only do it if the timestamp has changed), that acts as a cache in itself. Then, if you have smarty cache the output as well, it becomes this doubled sort of mess. All the testing I've done has shown that it's faster without the smarty caching on and just using the compiled templates as the cache instead.
I guess we'll see what happens when beta2 comes out tonight.
I guess we'll see what happens when beta2 comes out tonight.
Re: Module template cache
? Tonite ? oh boy i can't wait,
mark
mark
Re: Module template cache
If I understand well, it is not necessary for me to look at speed concern in my module for templates : CMSMS does it for me ?
Cool
Cool
