I have an app that hosts several accounts, each mapped to its own domain.
I want to define different page caching directories for each account.
I have this in my application controller (before filter):
self.page_cache_directory = RAILS_ROOT+"/public/cache/" + @account.name
But that doesn't seem right because it effectively overwrites the page_cache_directory variable for ActionController::Base (it is a cattr_accessor), being a problem with concurrent requests.
Is there a better way?