Selective compiled template deletion
| From: | Marcus Bointon | Date: | Sun, 15 Oct 2006 22:11:51 +0000 |
| Subject: | Selective compiled template deletion | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-13510@lists.php.net to get a copy of this message | ||
I'm in an odd place - I need to call clear_compiled_tpl(), but I only want to clear all compiled templates with a certain compile ID. From the docs it looks like I either clear everything, or just a specific template with a name AND a compile id. I need something in between - can I do clear_compiled_tpl('', 'my_compile_id') to clear everything with that compile ID?
My situation is that I have a web interface to an email sending process and I'm having problems with stale compiled versions of email templates, which have a compile ID, and I want to clear them all without clearing the compiled templates for the web interface too.
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
marcus@synchromedia.co.uk | http://www.synchromedia.co.uk/