Re: [SMARTY] Making a dynamically loaded plugin uncacheable

From: Date: Wed, 10 Aug 2005 17:05:50 +0000
Subject: Re: [SMARTY] Making a dynamically loaded plugin uncacheable
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12943@lists.php.net to get a copy of this message
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 <ivo@ibuildings.nl> 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 <ivo@ibuildings.nl> > 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

« previous php.smarty.general (#12943) next »