2013-07-14, 12:06 PM
Not a plugin, but a set of small patches that caches templates to disk. Requires PluginLibrary 12 for the cache functions. And the Patches plugin to actually apply the patch.
The cache saves one database query per request plus additional queries in case you have plugins that don't put their templates into $templatelist for some reason. (The cache makes $templatelist entirely superfluous).
Does it make your site load faster? Not really. It may in fact make it slower, since instead of a simple DB query, it has to load PluginLibrary and the cache file. Which is slower than a DB query unless PHP itself is cached/accelerated/optimized properly. Your database would have to suck or be located on a different server for it to make any difference.
What's the point then? None really, except it could be done.
I considered making this a plugin, with additional features such as an advanced template editor that allows you to edit templates inline (on the site they appear on) and helps you create entire template sets from scratch, but I don't have the time for it...
The cache saves one database query per request plus additional queries in case you have plugins that don't put their templates into $templatelist for some reason. (The cache makes $templatelist entirely superfluous).
Does it make your site load faster? Not really. It may in fact make it slower, since instead of a simple DB query, it has to load PluginLibrary and the cache file. Which is slower than a DB query unless PHP itself is cached/accelerated/optimized properly. Your database would have to suck or be located on a different server for it to make any difference.
What's the point then? None really, except it could be done.
I considered making this a plugin, with additional features such as an advanced template editor that allows you to edit templates inline (on the site they appear on) and helps you create entire template sets from scratch, but I don't have the time for it...