For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > May 2004 > Smarty cache.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Smarty cache.
Eskil Keskikangas

2004-05-21, 10:40 am

We had about 200 000 cached files, it looked like every request created
a new file. I dont know if it was after i did the change to the
cache_key. I added the $page['lang'] variable. But after that i clear
all cache file but i did not clear the compile templates. Is it
possible that this was what caused the problem?

My displaytag for all pages:

$smarty->display( $page['tpl_path'].'/index.tpl', md5(
$_SERVER['REQUEST_URI'].$page['lang'] ) );

BR
Eskil Keskikangas
Ulrik Nielsen

2004-05-21, 10:40 am

Eskil Keskikangas wrote:
> $smarty->display( $page['tpl_path'].'/index.tpl', md5(
> $_SERVER['REQUEST_URI'].$page['lang'] ) );


If this includes session id's then every new session will generate a new
cache file.

--[color=darkred]
excuse of the day : multicasts on broken packets
from bofh : http://www.cs.wisc.edu/~ballard/bofh/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com