We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1159337 commit d72518eCopy full SHA for d72518e
config/initializers/page_cache_logger.rb
@@ -0,0 +1,7 @@
1
+ActiveSupport::Notifications.subscribe("write_page.action_controller") do |event|
2
+ Rails.logger.info "Page cached: #{event.payload[:path]}"
3
+end
4
+
5
+ActiveSupport::Notifications.subscribe("expire_page.action_controller") do |event|
6
+ Rails.logger.info "Page expired: #{event.payload[:path]}"
7
0 commit comments