Module: Vhost::PagesControllerExtensions
- Defined in:
- lib/vhost/pages_controller_extensions.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
2 3 4 |
# File 'lib/vhost/pages_controller_extensions.rb', line 2 def self.included(receiver) receiver.send :alias_method_chain, :clear_model_cache, :site_specificity end |
Instance Method Details
#clear_model_cache_with_site_specificity ⇒ Object
6 7 8 9 |
# File 'lib/vhost/pages_controller_extensions.rb', line 6 def clear_model_cache_with_site_specificity url_to_expire = "#{request.host}#{@page.url}" Radiant::Cache.clear(url_to_expire) if defined?(Radiant::Cache) end |