Mercurial > zeropaste
changeset 54:e8920b00035c
Moved cache to dedicated directory.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 04 Oct 2012 04:37:41 +0700 |
parents | 817c54a72b58 |
children | f957ce997ff0 |
files | .hgignore config/application.rb |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgignore Thu Oct 04 04:36:49 2012 +0700 +++ b/.hgignore Thu Oct 04 04:37:41 2012 +0700 @@ -8,6 +8,7 @@ ^[^/]+\.war ^bin/ ^public/data(/|$) +^public/cache(/|$) ^public/javascripts/cached/all\.js (extconf\.h|Makefile|mkmf\.log)$ ^public/sitemap(\d+|_index)\.xml\.gz$
--- a/config/application.rb Thu Oct 04 04:36:49 2012 +0700 +++ b/config/application.rb Thu Oct 04 04:37:41 2012 +0700 @@ -68,5 +68,8 @@ # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' + + # Save cache in different location to avoid collision. + config.action_controller.page_cache_directory = config.root.join('public', 'cache') end end