[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-general
Subject:    Re: [SMARTY] Making a dynamically loaded plugin uncacheable
From:       boots <jayboots () yahoo ! com>
Date:       2005-08-10 17:05:50
Message-ID: 20050810170550.69167.qmail () web50802 ! mail ! yahoo ! com
[Download RAW message or body]

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 
 

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic