Archive for April, 2009
How To Smarty Cache
by Root on Apr.14, 2009, under Php, smarty
Ok. If you use smarty and some part of your web site are no need to uptime any time, we can use the Smarty cache.
But smarty cache is not usefull for big project. But you can use in very simple let’s start.
First Prepare script for smarty.
require ‘kernel/libs/Smarty.class.php’; // This is my smarty class.
$smarty = new Smarty; //
$smarty->caching = true;
$smarty->cache_dir = "mycachedir/" where is cache?