Page 1 of 1

Module template cache

Posted: Tue May 02, 2006 1:50 pm
by dam
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

Re: Module template cache

Posted: Wed May 03, 2006 1:12 am
by mikemcvey
something I want to know as well!

Good luck

Re: Module template cache

Posted: Wed May 03, 2006 3:08 am
by Elijah Lofgren
It looks like the smarty template cache was disabled 8 days ago.  :D
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.  :)

Re: Module template cache

Posted: Wed May 03, 2006 8:51 am
by dam
Elijah Lofgren wrote: It looks like the smarty template cache was disabled 8 days ago.  :D
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.  :)
Well  :-\
What will be the impact on site speed ?

Re: Module template cache

Posted: Wed May 03, 2006 9:27 am
by cyberman
It will be faster  :D ...

Re: Module template cache

Posted: Wed May 03, 2006 9:51 am
by Ted
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.

Re: Module template cache

Posted: Wed May 03, 2006 1:16 pm
by Dr.CSS
? Tonite ? oh boy i can't wait,

    mark

Re: Module template cache

Posted: Wed May 03, 2006 1:28 pm
by dam
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  8)