[prev in list] [next in list] [prev in thread] [next in thread]
List: smarty-general
Subject: [SMARTY] using expired cached files
From: "Marshall Sorenson" <marshall () byterage ! net>
Date: 2003-09-11 18:57:21
[Download RAW message or body]
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
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic