diff config/application.rb @ 91:bfa612a1d56f

Enables compression for caches.
author Edho Arief <edho@myconan.net>
date Tue, 06 Nov 2012 12:08:02 +0700
parents e8920b00035c
children 2cd5ff641865
line wrap: on
line diff
--- a/config/application.rb	Tue Nov 06 11:25:10 2012 +0700
+++ b/config/application.rb	Tue Nov 06 12:08:02 2012 +0700
@@ -71,5 +71,8 @@
 
     # Save cache in different location to avoid collision.
     config.action_controller.page_cache_directory = config.root.join('public', 'cache')
+
+    # Enable compression for page caches.
+    config.action_controller.page_cache_compression = :best_compression
   end
 end