# HG changeset patch # User Edho Arief # Date 1349300261 -25200 # Node ID e8920b00035c92143ce14f4adce2898351c4b2a2 # Parent 817c54a72b5852a0d7d482733cf9fe2c3195ef74 Moved cache to dedicated directory. diff -r 817c54a72b58 -r e8920b00035c .hgignore --- 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$ diff -r 817c54a72b58 -r e8920b00035c config/application.rb --- 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