views:

104

answers:

1

Is it possible to check the value of:

config.action_controller.perform_caching

...from within ApplicationController?

I have some custom caching methods that should or shouldn't be called based on this value.

A: 
ActionController::Base.perform_caching

returns true or false depending on whether the caching is enabled.

Simone Carletti