No response from the list, so I've been digging into Radiant source
with my trusty debugger...
I can now provide a bit more detail. It appears that, after starting
the server, the very first request honours the settings in my
development.rb file. So ResponseCache.defaults[:perform_caching] is
false, and indeed, the first response is not cached. However, on
subsequent requests, the ResponseCache.defaults are loaded straight
from the @@defaults as set in the ResponseCache itself. This sets
perform_caching to true, and seems to explain why I'm getting page
caching when running in the development environment.
Is anyone else experiencing this?
Cheers,
Drew
On 28 May 2009, at 11:51, Andrew Neil wrote:
Hi,
I have a line in my config/environments/development.rb file as
follows:
ResponseCache.defaults[:perform_caching] = false
In version 0.6.9 of Radiant, this turned caching off in development
mode. I've just upgraded a site to run on 0.7.1, and I now find that
page caching is turned on in development mode.
How do I turn off page caching in development mode in Radiant 0.7.1?
This is my entire config/environments/development.rb file:
config.cache_classes = false
config.whiny_nils = true
config.action_controller.consider_all_requests_local = true
config.action_view.debug_rjs = true
config.action_controller.perform_caching = false
ResponseCache.defaults[:perform_caching] = false
config.action_mailer.raise_delivery_errors = false
require 'ruby-debug'
Cheers,
Drew
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant