[Catalyst] Silently failing PageCache with Cache::FastMmap

2007-06-12 Thread apv
On my dev box, with the test server and with apache/fcgi, PageCache  
is working fine. On my live box (with DreamHost, test and apache/ 
fcgi), it's reporting that it's caching

  [debug] Caching page / for 300 seconds
but it reports it for every request instead of serving out of the  
cache for X seconds after the first request.


I've looked through the debug output and the POD for all the related  
files. Can't figure it out or find any related info in mailing list  
archive. I updated all my related Cache modules and I believe  
everything that's running is current.


The app is loading these
Cache::FastMmap
PageCache
last, after session and such.

And the config has
  page_cache:
set_http_headers: 1
debug: 1

Any ideas where to poke it to figure out why it's failing and how it  
can fail silently? Surely it has to do with the filesystem or  
permissions underneath? But that causes fatals on my dev box so I am  
not sure where to look…


Also, after I already wrote the above I tried Cache::FileCache  
instead of Cache::FastMmap and it works dev and live. I'm still  
curious why the other won't and which anyone recommends if you have a  
reason for a preference.



–Ashley
--



___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Silently failing PageCache with Cache::FastMmap

2007-06-12 Thread Matt S Trout
On Tue, Jun 12, 2007 at 06:11:09PM -0700, apv wrote:
 On my dev box, with the test server and with apache/fcgi, PageCache  
 is working fine. On my live box (with DreamHost, test and apache/ 
 fcgi), it's reporting that it's caching
   [debug] Caching page / for 300 seconds
 but it reports it for every request instead of serving out of the  
 cache for X seconds after the first request.
 
 I've looked through the debug output and the POD for all the related  
 files. Can't figure it out or find any related info in mailing list  
 archive. I updated all my related Cache modules and I believe  
 everything that's running is current.
 
 The app is loading these
 Cache::FastMmap
 PageCache
 last, after session and such.

Catalyst::Plugin::Cache::* are deprecated, use Catalyst::Plugin::Cache.

Also note FastMmap will silently drop any object larger than its page size.

-- 
  Matt S Trout   Need help with your Catalyst or DBIx::Class project?
   Technical DirectorWant a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/ 

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Silently failing PageCache with Cache::FastMmap

2007-06-12 Thread apv

On Jun 12, 2007, at 8:00 PM, Matt S Trout wrote:
Catalyst::Plugin::Cache::* are deprecated, use  
Catalyst::Plugin::Cache.


Thanks. I got it out of the current Cookbook POD. I hadn't read any  
core documents through in a year so I thought I was catching up. :)


-Ashley


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/