Page 1 of 1

Templating System Cache

Posted: Sat Oct 15, 2005 10:02 pm
by mickd
I was wondering if anyone could enlighten me on how templating systems like Smarty can cache certain pages when it loads so that pages that follow would in term load faster.

Thanks for any help :)

Posted: Sat Oct 15, 2005 10:14 pm
by mickd
I found this:
http://www.sitepoint.com/article/beyond ... e-engine/3
where they save the cached file along with an unique id and call for the cached file using the uniq id.

i was just wondering if thats the way Smarty does it too.

Btw, wouldnt it be more easier to just sterilised the object and store it in a cookie then on following pages unsterilise it and just output the file straight away only changing the body part according to GET? (if that works)