Templating System Cache

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

Templating System Cache

Post 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 :)
mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

Post 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)
Post Reply