Mercurial > zeropaste
changeset 91:bfa612a1d56f
Enables compression for caches.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Tue, 06 Nov 2012 12:08:02 +0700 |
parents | d100218b96c9 |
children | b09ae54df3cd |
files | config/application.rb |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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