Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing a cache bug introduced by the removal of /articles

  • Loading branch information...
commit cdca77f84223eb0027ba67f0ba13462e64b39007 1 parent f2e378c
Frederic de Villamil authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.