Permalink
Browse files

Fixing a cache bug introduced by the removal of /articles

  • Loading branch information...
1 parent f2e378c commit cdca77f84223eb0027ba67f0ba13462e64b39007 Frederic de Villamil committed May 28, 2008
Showing with 5 additions and 2 deletions.
  1. +5 −2 app/models/page_cache.rb
View
7 app/models/page_cache.rb
@@ -14,11 +14,14 @@ def self.public_path
def self.sweep_all
logger.debug "PageCache - sweep_all called by #{caller[1].inspect}"
unless Blog.default && Blog.default.cache_option == "caches_action_with_params"
- self.zap_pages(%w{index.* articles.* articles pages
+ self.zap_pages(%w{index.* articles.* pages
pages.* feedback feedback.*
comments comments.*
categories categories.*
- tags, tags.*})
+ tags, tags.* category archive.*})
+
+ self.zap_pages((1990..2020))
+ self.zap_pages([*1990..2020].collect { |y| "#{y}.*" })
end
end

0 comments on commit cdca77f

Please sign in to comment.