Re: [SMARTY] Cache Problem
| From: | Alex | Date: | Thu, 29 Jan 2004 20:16:02 +0000 |
| Subject: | Re: [SMARTY] Cache Problem | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10894@lists.php.net to get a copy of this message | ||
Hi, I think simple type casts will work as well ;)
$somevalue = (string)$somevalue;
with best regards,
alex
Daniel Cummings wrote:
Hi Alex, I saw something similar when I tested your assertion. There may be something else going on and I tried to follow the source code, but got a bit lost in all the layers. Following the cache_id on its traverses through the source is a bit confusing. Anyhow, if groupIDs work with strings just use strings. I use a string padding function to ensure my strings all are the same length: $which_padded = substr("0000$which",-4); dan On 1/28/04 6:46 PM, "Alex" <alex@pvl.at> wrote:Funny, but it seems as though Smarty does not like me giving it Cache Group IDs in form of integers. The id '1|1|index.htm' does not work spawning an fopen(/pub/home/ess01098/hotel/cache/1/1/%%113/%%1135816523/index.htm): failed to open stream: No such file or directory error, whereas 'article|1|index.htm' works fine -- any ideas? regards, alex