[pLog-svn] r5274 - plugins/branches/lifetype-1.2/cssnaked

Reto Hugi plog at hugi.to
Thu Apr 5 18:32:57 EDT 2007


On 04/05/2007 08:57 PM, Jon Daley wrote:
> On Thu, 5 Apr 2007, Reto Hugi wrote:
>> but then again, in my case the register() method was not useful because
>> if frontend templates are cached the register method() does not have the
>> blogInfo and UserInfo Object.
>  	Hrm. I thought that was the whole point of the register() 
> function.  It works in authimage, or is something different in that case?
> 

that's what I think. I'm using the event for OUTPUT_FILTER here. and if
the template is cached, there's no "register". that's probably why we
get the two objects via process() call as a parameter.

The register() method sure can be useful, but maybe some plugins could
be tuned. if they never get processed() because of a missing event, they
still allocated memory for the stuff they do in register() although some
operations don't need to be done right at the beginning. the API
actually says that register is only there because the constructor might
not have all the objects the plugin later on needs...


More information about the pLog-svn mailing list