News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Justin Silverton's Blog:
How to Cache Smarty Templates (as per the manual)
April 03, 2006 @ 21:28:30

In the latest of his series of "Quickie Tutorials" today, Justin Silverton has this new post about the caching of Smarty templates in your application (as taken from the Smarty manual)

Since templates are dynamic, it is important to be careful what you are caching and for how long. For instance, if you are displaying the front page of your website that does not change its content very often, it might work well to cache this page for an hour or more. On the other hand, if you are displaying a page with a weather map containing new information by the minute, it would not make sense to cache this page.

It goes through the usual steps - what configuration options you'd need to change, an example of the code, and some tips on how to get the best performance out of your caching.

1 comment voice your opinion now!
smarty manual caching template configure example tips smarty manual caching template configure example tips


blog comments powered by Disqus

Similar Posts

Pierre-Alain Joye's Blog: how to do not work around filter (don't be lazy :)

Paul Jones' Blog: What Does This Say About Unit-Testing in PHP Land?

KillerSoft.com: Savant Gets Pearified

Maarten Balliauw's Blog: Reuse Excel business logic with PHPExcel

Matthew Weir O'Phinney's Blog: Cgiapp2 Tutorial 1 - Switch Template Plugins at Will


Community Events

Don't see your event here?
Let us know!


introduction community conference application php7 example symfony2 release library performance framework laravel series interview api podcast opinion voicesoftheelephpant install configure

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework