Take a look in the eZTemplateCacheBlock class, its in lib/eztemplate/classes/eztemplatecacheblock.php. Its a helper class to be able to use cache-blocks directly in php, the file contains several examples of use.
But what's the class for <i>$handler</i> in the else section ? I searched in the API doc and I found eZFSFileHandler but the <i>storeCache()</i> method seems to be private.
The doc says : <i>This method is just a continuation of the code in processCache() and is not meant to be called alone since it relies on specific state in the database.</i> This method is very convenient but will it be still accessible in future releases ?
Thanks
You must be logged in to post messages in this topic!