diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-21 11:02:15 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-21 11:02:15 +0000 |
commit | fc294a8dab42dad75cabcd21e2793d4073d41f79 (patch) | |
tree | 9e02c25f12c01f18de9269d784667d2bdf6802ca | |
parent | 051612ef17e6e6f2a722f14fce6c6fcdd35c68bb (diff) |
Logging for fragment cache
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d3ea7493b..8fc6c3792 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -197,10 +197,12 @@ class ApplicationController < ActionController::Base return File.exists?(key_path) end def foi_fragment_cache_read(key_path) + logger.info "Reading from fragment cache #{key_path}" return File.read(key_path) end def foi_fragment_cache_write(key_path, content) FileUtils.mkdir_p(File.dirname(key_path)) + logger.info "Writing to fragment cache #{key_path}" File.atomic_write(key_path) do |f| f.write(content) end |