<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>performance - Slepi.NET</title>
    <link>http://slepi.net/archives/tag/performance</link>
    <pubDate>Thu, 20 Nov 2008 22:10:21 -0600</pubDate>
    <description>RSS feed for entries tagged as performance on Slepi.NET</description>
    <copyright>Copyrights 2008 Wiras Adi</copyright>
    <image>
      <url>http://www.slepi.net/images/slepinet-rss.png</url>
      <title>performance - Slepi.NET</title>
      <link>http://www.slepi.net</link>
    </image>
    <item>
      <title>Invalidate Smarty Cache Using Cache Dependency Files</title>
      <link>http://slepi.net/entry/invalidate_smarty_cache_using_cache_dependency_files</link>
      <description>&lt;p&gt;&lt;a href="http://smarty.php.net" title="Smarty" onclick="window.open(this.href);return false" onkeypress="window.open(this.href);return false" rel="nofollow external"&gt;Smarty&lt;/a&gt; is perhaps the most powerful and widely used &lt;abbr title="PHP: Hypertext Preprocessor"&gt;PHP&lt;/abbr&gt; template engine available for PHP-based application developments. Though its usage has now been a bit pulled-aside by the rise of more advance frameworks such as &lt;a href="http://www.drupal.org" title="Drupal" onclick="window.open(this.href);return false" onkeypress="window.open(this.href);return false" rel="nofollow external"&gt;Drupal&lt;/a&gt; or &lt;a href="http://www.cakephp.org" title="CakePHP" onclick="window.open(this.href);return false" onkeypress="window.open(this.href);return false" rel="nofollow external"&gt;CakePHP&lt;/a&gt;, which come with their own template system implementations, for a "bare" template engine Smarty is still the favorite. I myself still use the combination of Smarty and &lt;a href="http://pear.php.net" title="PEAR" onclick="window.open(this.href);return false" onkeypress="window.open(this.href);return false" rel="nofollow external"&gt;PEAR&lt;/a&gt; (PHP Extension and Application Repository) for most of my PHP projects.&lt;/p&gt;
&lt;p&gt;Taking it more than just a template engine, Smarty provides a built-in caching functionality. Smarty caches the server response, and that is in pure HTML. This is nice in the term of performance, especially for an extensive script-processing generated page (ie. script that does several database queries). As long as the cache hasn't been invalidated, in subsequent request of the page Smarty will simply return the pure &lt;abbr title="Hypertext Markup Language"&gt;HTML&lt;/abbr&gt; cache instead of executing the script every time.&lt;/p&gt;</description>
      <pubDate>Sun, 09 Mar 2008 20:15:54 -0500</pubDate>
      <guid>http://slepi.net/entry/invalidate_smarty_cache_using_cache_dependency_files</guid>
      <author>wiras@slepi.net (Wiras Adi)</author>
    </item>
  </channel>
</rss>
