cache_serials and non-cacheable plugins
[email protected] (Nichlas Löfdahl) Thu, 1 Sep 2005 00:39:20 +0200
| Newsgroups | php.smarty.dev |
|---|---|
| Message-ID | <001401c5ae7c$d49e5090$2101a8c0@nichlas> |
Hello!
I'm having some problems, which seems to be (without deeper knowledge of Smarty internals) originating from how cache_serials are generated (md5(uniqid())).
I have a couple of webservers. The compiled templates are stored locally on the webservers. The smarty cache-files are stored on a shared storage.
The templates in question are componized, made of parts which are cached seperatly (by using a second instance of smarty and doing $cache_smarty->fetch() and then $smarty->assign() the result to the main template).
I also have a function plugin registered as non-cachable. When the cached part of the template is shown it also shows a string like " {nocache:d41d8cd98f00b204e9800998ecf8427e#0} ". Obviously it seems like Smarty cannot replace the nocache-part with the appropiate function.
Any ideas how to solve this? It would be good if the serials wasn't timebased (uniqid()) because the clock of the different webservers in a cluster is never completely synched.
/Nichlas