Hi,

(Mason 1.44)

It seems that the instructions for disabling the cache are out of date:

http://www.masonhq.com/docs/manual/Admin.html#disabling_data_caching

Using

      data_cache_defaults => {cache_class => 'NullCache'},

gives (in the error log):

Can't locate package Cache::BaseCache for @Cache::NullCache::ISA at
(eval 370) line 2, <GEN0> line 2.

plus (in the browser)

Can't locate object method "_conditionally_auto_purge_on_get" via
package "HTML::Mason::Cache::NullCache" at
/home/e1/perl5/lib/perl5/HTML/Mason/Cache/BaseCache.pm line 23, <GEN0>
line 2.


Trace begun at /home/e1/perl5/lib/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object
method "_conditionally_auto_purge_on_get" via package
"HTML::Mason::Cache::NullCache" at
/home/e1/perl5/lib/perl5/HTML/Mason/Cache/BaseCache.pm line 23, <GEN0>
line 2.^J') called at
/home/e1/perl5/lib/perl5/HTML/Mason/Cache/BaseCache.pm line 23
HTML::Mason::Cache::BaseCache::get('HTML::Mason::Cache::NullCache=HASH(0xc5246d8)',
'__mason_cache_self__') called at
/home/e1/perl5/lib/perl5/HTML/Mason/Request.pm line 838
HTML::Mason::Request::cache_self('HTML::Mason::Request::ApacheHandler=HASH(0xc4a051c)',
'expire_in', '12 hours') called at
/home/e1/e1/stage/sites/www.evolui.com/docs/mailing_list.html line 28
HTML::Mason::Commands::__ANON__ at
/home/e1/perl5/lib/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xc524750)')
called at /home/e1/perl5/lib/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /home/e1/perl5/lib/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef) called at
/home/e1/e1/stage/sites/www.evolui.com/docs/caixas.html line 2
HTML::Mason::Commands::__ANON__ at
/home/e1/perl5/lib/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xc4e4ddc)')
called at /home/e1/perl5/lib/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /home/e1/perl5/lib/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef) called at
/home/e1/e1/stage/sites/www.evolui.com/docs/autohandler line 32
HTML::Mason::Commands::__ANON__ at
/home/e1/perl5/lib/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xc4e881c)')
called at /home/e1/perl5/lib/perl5/HTML/Mason/Request.pm line 1297
eval {...} at /home/e1/perl5/lib/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at
/home/e1/perl5/lib/perl5/HTML/Mason/Request.pm line 481
eval {...} at /home/e1/perl5/lib/perl5/HTML/Mason/Request.pm line 481
eval {...} at /home/e1/perl5/lib/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xc4a051c)')
called at /home/e1/perl5/lib/perl5/HTML/Mason/ApacheHandler.pm line
168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0xc4a051c)')
called at /home/e1/perl5/lib/perl5/HTML/Mason/ApacheHandler.pm line
825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x951fd40)',
'Apache=SCALAR(0xc3ffa90)') called at /home/e1/e1/stage/etc/startup.pl
line 338


What is the proper method to disable the cache?

Thanks,
-- 
Pedro Melo
http://www.simplicidade.org/
xmpp:m...@simplicidade.org
mailto:m...@simplicidade.org

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to