logo       

Re: [SMARTY] rebuild_cache() - just a thought: msg#00454

php.smarty.general

Subject: Re: [SMARTY] rebuild_cache() - just a thought

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-
Geoff


Hi,

Just to begin, I changed my email address. I used to be paul@xxxxxxxxxxxx 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



--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise