[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mason
Subject:    Re: [Mason] Module caching
From:       Tom Allison <tallison () tacocat ! net>
Date:       2005-02-28 11:24:51
Message-ID: 4222FF83.6010209 () tacocat ! net
[Download RAW message or body]

Seb wrote:
> Hello,
> 
> 
> 
> I may be getting bitten by an optimization somewhere.
> 
> I use a personal module, let's call it 'io.pm'. It is declared via a
> directive "use lib '/path/to/io.pm'" in httpd.conf, as instructed in
> Mason's manual. It works: I can access its functions from a .html
> file, let's say io::read().
> 
> Problem: when I update io.pm (modify some code) and restart Apache, the
> changes seem not to be taken into account by Mason. Apache does look at
> io.pm: if I introduce a syntax typo, Apache signals it on startup. It's
> only when the code is called inside a .html file that I notice a
> problem.
> 
> I tried voiding Mason's cache (the directory declared via MasonDataDir
> in httpd.conf). I also tried to void mod_perl's cache, but found
> /var/cache/apache-perl empty (Debian Sarge).
> 
> I'm not sure whether this is Mason or mod_perl related, sorry (I use
> mod_perl only for Mason).
> 
> 
> Can you help me find out what I am doing wrong or missing?
> 

I haven't a silver bullet but adding the module Apache::Reload might be 
useful on a development box.  The theory is, you don't have to restart 
as much.

Also, I don't believe that the object caching is automatically used, you 
have to call for it.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic