I have started a number of new provider methods for converting PDF, APT, vCalendar and other formats on the fly to XML and allowing processing. They are getting close to release but I have hit a small snag.

For some reason, even if checking for the cached version, the sub get_strref is called. This means it is called twice on a normal request and once on a cached request. One particular module is fairly slow at converts and I need it to work properly on the caching side.

A short fragment...

sub get_strref {
        my $self = shift;
        warn "STR FILE = $self->{file}\n";

This module inherits from Apache::AxKit::Provider::File, but maybe it should not ?

One thought was that get_strref is supposed to return the string and do its own caching ? Is that true? If so, is there an easy way to add caching to it, and how does it then know if the file has changed.

Obviously I can easily do all this myself, but I want to do it the "standard AxKit way".

Thanks

Scott
--
* - *  http://www.osdc.com.au - Open Source Developers Conference * - *
Scott Penrose
VP in charge of Pancakes
http://linux.dd.com.au/
[EMAIL PROTECTED]

Dismaimer: If you receive this email in error - please eat it immediately to prevent it from falling into the wrong hands.

Please do not send me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

Microsoft is not the answer. It's the question. And the answer is no.


Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to