[SMARTY] Making a dynamically loaded plugin uncacheable

Ivo Jansch <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
-----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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.