using expired cached files

From: Date: Thu, 11 Sep 2003 18:57:21 +0000
Subject: using expired cached files
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10190@lists.php.net to get a copy of this message
Hello, Does anyone know of a way to tell Smarty to use an expired cache file if an error occured while trying to generate an updated cache file? For instance: if template not cached { do database query here if database query failed { smarty should use the recently expired cache file } else { process query results and assign to template } } $smarty->display('index.tpl'); The way things are now I have to either die() on an error, or check for an error and switch caching off. Both are ugly. -Marshall ____________________________________ "If at first the idea is not absurd, then there is no hope for it." - Albert Einstein

« previous php.smarty.general (#10190) next »