Click here to get back home

file upload, multipart form, and cgi::cache

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
file upload, multipart form, and cgi::cache LLcoolSay 04-21-2006
Posted by LLcoolSay on April 21, 2006, 7:01 am
Please log in for more thread options


Not sure if folks frequent this forum but if you see this and can/do
help, I'd be much obliged

I am trying to implement caching in a cgi app I am writing for my
company and am having trouble when an attachment is uploaded as a part
of the multipart form. This is the error that I get.

Can't store GLOB items at ../../lib/Storable.pm (autosplit into
../../lib/auto/Storable/_freeze.al) line 287, at
/usr/local/perl587/lib/site_perl/5.8.7/CGI/Cache.pm line 251

Here's how I am setting up my Cache.

CGI::Cache::setup( { cache_options =>
                                 { cache_root => '/tmp/CGI_Cache',
                                         namespace => 'myapp_cgi',
                                         directory_umask => 077,
                                         max_size => 20 * 1024 * 1024,
                                         default_expires_in => '12 hours',
                                 }
                                 } );
my $c = new CGI;
my $params = $c->Vars;
delete $params->;
CGI::Cache::set_key( $params );
CGI::Cache::invalidate_cache_entry() if $c->param( 'force_regenerate' )
eq 'true';
CGI::Cache::start() or exit;

As you can see up here, I even tried to not include the upload_file
parameter as a part of the key bu that didnt help. I also tried to put
CGI::Cache::pause() and CGI::Cache::continue() around the sub that
performs the upload in the app but that didnt help either.

Any ideas/suggestions would be much appreciated.

regards,
Sam


Similar ThreadsPosted
install HTML::Template - Problem reading cache file / Bad file number July 24, 2004, 7:55 pm
HTTP::Mechanize / file-form October 13, 2006, 10:16 pm
file upload January 5, 2006, 7:00 am
File::FilterFuncs almost ready to upload to CPAN. January 18, 2007, 10:22 pm
multipart/byteranges January 1, 2006, 2:07 am
HTTP::Cache module September 26, 2004, 8:37 am
Accessing the Memoize cache April 2, 2005, 1:15 am
IIS + Cache + W2003 + HTML header problem May 8, 2006, 8:24 am
WWW::Mechanize "There is no Form named (...)" December 8, 2004, 5:58 am
WWW::Mechanize cannot find the form. February 14, 2006, 9:04 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap