x15
Guest
Smarty кэширование
Сайт работает на смарти, но медленно !!!
хочу включить кэширование...
делаю...
...................
var $templates="/templates/";
var $templates_c="/templates_c/";
var $caches="/cache/";
...................
$smarty=&$this->smarty;
global $_SERVER;
$smarty = new Smarty;
$smarty->caching = 1;
$smarty->debugging = $this->debug;
$smarty->cache_dir=$_SERVER["DOCUMENT_ROOT"].$this->caches;
$smarty->template_dir=$_SERVER["DOCUMENT_ROOT"].$this->templates;
$smarty->compile_dir=$_SERVER["DOCUMENT_ROOT"].$this->templates_c;
....................
в ответ пустая страница !!!
..............
кто нить работал с кэшированием ?!
Сайт работает на смарти, но медленно !!!
хочу включить кэширование...
делаю...
...................
var $templates="/templates/";
var $templates_c="/templates_c/";
var $caches="/cache/";
...................
$smarty=&$this->smarty;
global $_SERVER;
$smarty = new Smarty;
$smarty->caching = 1;
$smarty->debugging = $this->debug;
$smarty->cache_dir=$_SERVER["DOCUMENT_ROOT"].$this->caches;
$smarty->template_dir=$_SERVER["DOCUMENT_ROOT"].$this->templates;
$smarty->compile_dir=$_SERVER["DOCUMENT_ROOT"].$this->templates_c;
....................
в ответ пустая страница !!!
..............
кто нить работал с кэшированием ?!