horal
Новичок
помогите разобраться с кешированием на Smarty
Есть такие настройки:
$this->force_compile = false;
$this->debugging = false;
$this->caching = true;
$this->cache_dir = DOCUMENT_ROOT .'/tmp/tcache/';
$this->cache_lifetime = 3600;
$this->cache_modified_check = true;
index.php:
switch ($mode)
{
case 'login': // some dynamic data
case 'news': // some dynamic data
case 'search': // search forms for hatas, houses etc.
case 'board': // доска объявлений
case 'catalog': // -- his is his
case 'users':
case 'sitemap':
include ('modules/mod_'.$mode.'.php');
break;
....
}
$tpl->assign ('header',$main_header);
$tpl->assign('FOOTER',$tpl->fetch('footer.tpl'));
$tpl->display('index.tpl');
ПРОБЛЕМА:
после активации кэширования при нажатии на любую ссылку - отображается только index.
URL в адресной строке меняется, а отображается только главная страница.
подскажите в чем тут дело плз!
Есть такие настройки:
$this->force_compile = false;
$this->debugging = false;
$this->caching = true;
$this->cache_dir = DOCUMENT_ROOT .'/tmp/tcache/';
$this->cache_lifetime = 3600;
$this->cache_modified_check = true;
index.php:
switch ($mode)
{
case 'login': // some dynamic data
case 'news': // some dynamic data
case 'search': // search forms for hatas, houses etc.
case 'board': // доска объявлений
case 'catalog': // -- his is his
case 'users':
case 'sitemap':
include ('modules/mod_'.$mode.'.php');
break;
....
}
$tpl->assign ('header',$main_header);
$tpl->assign('FOOTER',$tpl->fetch('footer.tpl'));
$tpl->display('index.tpl');
ПРОБЛЕМА:
после активации кэширования при нажатии на любую ссылку - отображается только index.
URL в адресной строке меняется, а отображается только главная страница.
подскажите в чем тут дело плз!