Re: [SMARTY] Making a dynamically loaded plugin uncacheable
boots <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
As far as I know, this is not possible -- you have to either manually load and register the plugin as non-caching OR get autoload behaviour... but not both. http://smarty.php.net/manual/en/plugins.writing.php --- Ivo Jansch <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > Suppose I've created a plugin named {plugin}. I don't register it, > it's > put in one of my registered plugin dirs, so whenever used, Smarty > will > automatically find it and include it when needed. > > So far so good. > > Now, I want this plugin to be never cached. So, per the docs on > http://smarty.php.net/manual/en/caching.cacheable.php, I've added a > register_function called for my plugin, with cacheable set to false. > > However, now it complains that it cannot find my plugin. In this > case, I > have to manually include the plugin file myself. Is there a solution > to > this? I want to tell smarty that the plugin is dynamic, but I still > want > to have it found and included on the fly only in those templates that > use it. > > Greetings, > Ivo > > - -- > Ivo Jansch <[email protected]> > ibuildings.nl BV - information technology > http://www.ibuildings.nl > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (MingW32) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFC+eAl95NUnGFZm9cRAmNKAKCTyrp12or9nVY+OXVaV9e6oE+koQCZAcfn > P1LsHDskn8ljbIxvPtu3XDs= > =CkXu > -----END PGP SIGNATURE----- > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php