I have not turned on page caching, as far as I can tell. Here is my
development.rb file. I don't see this issue with webrick(at port
3000), only with passenger at port 80.
I am not sure how I can find out if I cam caching to local process
memory, I have not deliberately set anytinig like that.
# Settings specified here will take precedence over those in config/
environment.rb
# In the development environment your application's code is reloaded
on
# every request. This slows down response time but is perfect for
development
# since you don't have to restart the webserver when you make code
changes.
config.cache_classes = false
# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true
# Show full error reports and disable caching
config.action_controller.consider_all_requests_local = true
config.action_view.debug_rjs = true
config.action_controller.perform_caching = false
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.default_url_options = {:host =>
"localhost", :port => "3000"}
config.action_mailer.default_charset = "utf-8"
config.cache_store = :mem_cache_store
config.gem "rails-footnotes"
config.action_controller.page_cache_directory = RAILS_ROOT + "/public/
cache/"
#if defined?(Footnotes)
# Footnotes::Filter.prefix = 'editor://open?url=file://%s&line=
%d&column=%d'
#end
On Aug 31, 3:31 am, Hongli Lai <
hon...@phusion.nl> wrote:
> On Tue, Aug 31, 2010 at 11:55 AM, Anuj Dutta <
dutta.a...@googlemail.com> wrote:
> > Hello,
> > Let me rephrase this:
> > You are experiencing caching issues with webrick? How is it related to
> > Passenger?
>
> I've never experienced any kinds of caching issues in Phusion Passenger.
>
> Maybe you're caching to local process memory? If so then you might be
> seeing stale cache entries when a request is routed to a different
> process. Use a shared cache instead like memcached.
>
> --
> Phusion | The Computer Science Company
>
> Web:
http://www.phusion.nl/
> E-mail:
i...@phusion.nl