Mercurial > zeropaste
comparison 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 |
comparison
equal
deleted
inserted
replaced
90:d100218b96c9 | 91:bfa612a1d56f |
---|---|
69 # Version of your assets, change this if you want to expire all your assets | 69 # Version of your assets, change this if you want to expire all your assets |
70 config.assets.version = '1.0' | 70 config.assets.version = '1.0' |
71 | 71 |
72 # Save cache in different location to avoid collision. | 72 # Save cache in different location to avoid collision. |
73 config.action_controller.page_cache_directory = config.root.join('public', 'cache') | 73 config.action_controller.page_cache_directory = config.root.join('public', 'cache') |
74 | |
75 # Enable compression for page caches. | |
76 config.action_controller.page_cache_compression = :best_compression | |
74 end | 77 end |
75 end | 78 end |