Permalink
Browse files

helps to fill in todos, even when tired. Ensure user is notified of u…

…nsupportive cache store on failed Rails.cache.delete_matched
  • Loading branch information...
1 parent d1f56ae commit 0a5e09fa529a23cfb2c6f3d9bff326b5112c5cb5 @zenchicken zenchicken committed Apr 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 pages/app/models/page.rb
@@ -265,7 +265,7 @@ def expire_page_caching
begin
Rails.cache.delete_matched(/.*pages.*/)
rescue NotImplementedError
- # TODO Inform user that cache backing store can't help us here ...
+ warn "**** [REFINERY] The cache store you are using is not compatible with Rails.cache#delete_matched so please disable caching to ensure proper operation. ***"
end
end
end

0 comments on commit 0a5e09f

Please sign in to comment.