Re: Caching problem with templates from database
| From: | Kamal Mahyuddin | Date: | Wed, 20 Nov 2002 18:36:10 +0000 |
| Subject: | Re: Caching problem with templates from database | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6481@lists.php.net to get a copy of this message | ||
Ok, my bad. I traced down the problem. I didn't realize MySQL's timestamp is
different from the unix timestamp. As soon as I changed the sql query in my
resource plugin to
"SELECT UNIX_TIMESTAMP(timestamp_col) ..."
it works as expected :)
-kamal
"Kamal Mahyuddin" <smarty@kamal.f2o.org> wrote in message
news:20021120050430.21505.qmail@pb1.pair.com...
> I have caching on, but I'm having a problem with caching for templates
> stored in a database. I'm calling the templates using something like this: