|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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/ |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 15 Oct 2006, at 23:11, Marcus Bointon wrote:
> clear_compiled_tpl('', 'my_compile_id') If I'm getting a template from a custom resource, of course I won't have a template filename, just a resource identifier - does this still work? clear_compiled_tpl('myresource:123', 'my_compile_id') Marcus -- Marcus Bointon Synchromedia Limited: Creators of http://www.smartmessages.net/ marcus@synchromedia.co.uk | http://www.synchromedia.co.uk/ |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Tue, Oct 17, 2006 at 01:38:49PM +0100, Marcus Bointon wrote:
> On 15 Oct 2006, at 23:11, Marcus Bointon wrote: > > >clear_compiled_tpl('', 'my_compile_id') > > If I'm getting a template from a custom resource, of course I won't > have a template filename, just a resource identifier - does this > still work? > > clear_compiled_tpl('myresource:123', 'my_compile_id') why don't you just TIAS? > Marcus |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
On Tue, Oct 17, 2006 at 01:38:49PM +0100, Marcus Bointon wrote:
> On 15 Oct 2006, at 23:11, Marcus Bointon wrote: > > >clear_compiled_tpl('', 'my_compile_id') you want ->clear_compiled_tpl(null, 'my_compile_id') here, AFAIK. > If I'm getting a template from a custom resource, of course I won't > have a template filename, just a resource identifier - does this > still work? > > clear_compiled_tpl('myresource:123', 'my_compile_id') > > Marcus > -- > Marcus Bointon > Synchromedia Limited: Creators of http://www.smartmessages.net/ > marcus@synchromedia.co.uk | http://www.synchromedia.co.uk/ > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
On 17 Oct 2006, at 13:54, messju mohr wrote:
> why don't you just TIAS? I will - I just wanted to be sure that if it did work, that it was working for the right reason! Thanks, Marcus -- Marcus Bointon Synchromedia Limited: Creators of http://www.smartmessages.net/ marcus@synchromedia.co.uk | http://www.synchromedia.co.uk/ |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
You can use the mod operator in IF statement logic, or use the more
natural language "is $foo div by 3" Marcus Bointon wrote: > On 17 Oct 2006, at 13:54, messju mohr wrote: > >> why don't you just TIAS? > > I will - I just wanted to be sure that if it did work, that it was > working for the right reason! > > Thanks, > > Marcus > --Marcus Bointon > Synchromedia Limited: Creators of http://www.smartmessages.net/ > marcus@synchromedia.co.uk | http://www.synchromedia.co.uk/ > > --Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > |
|
![]() |
| Outils de la discussion | |
|
|