CHI / FastMmap are not caching/reading my data correctly.  When I do this I
do get files in /var/spool/mason/site/cache.

httpd.conf:
PerlAddVar MasonDataCacheApi chi
PerlAddVar MasonDataCacheDefaults "driver => FastMmap"



   my $cache2 = $m->cache;
 my $sigh = $cache2->get('DoctorSigs_AC-' . $session{DoctorCode});
   unless ($sigh) {
        warn 'big sigh';
        $sigh=$dbh->selectcol_arrayref(q{ SELECT 'Sigh' });

       $cache2->set('Sigh' . $session{var}, $sigh, {expires_in => '1w'});
       warn "setting cache for 'Sigh-$session{var}' for 1 week";

     }

If I recall, CHI has a slightly different expires syntax, but I don't
recall...


-- 
Ryan Perry
CEO/Network Engineer
MadisonIP
madisonIP.com
------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to