Re: [SMARTY] rebuild_cache() - just a thought
| From: | Paul Lockaby | Date: | Thu, 30 Jan 2003 22:48:17 +0000 |
| Subject: | Re: [SMARTY] rebuild_cache() - just a thought | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7430@lists.php.net to get a copy of this message | ||
Hoffman, Geoffrey wrote:
I'm wondering how tough it would be to add a rebuild_cache('template.tpl', $cache_id, $compile_id) so i can call that right after I call clear_cache() in my CMS. Or, so it internally would call clear_cache() and then _write_cache_file ... Not 100% sure yet, but I bet my host won't install wget for me, and I'm pretty sure they have allow_url_fopen turned off. Regards- GeoffHi, Just to begin, I changed my email address. I used to be paul@dostuff.net. The problem with this, and I don't know if you have the same problem, is that I have tons of pages that need to be generated and cached, usually in a format like "pg_article_<id>" Unless you also specified in Smarty a list of all your templates, rebuilding the cache would be next to impossible, especially when you added another article, for instance. Of course, like Ferdinand said, if there is a specific page you want to always have cached, and the other caches can be generated on the fly, you could always call fetch() immediately after calling clear_cache(). Hope that clears it up. ~Paul