Changeset 1629
- Timestamp:
- 02/05/08 12:38:09 (3 months ago)
- Files:
-
- trunk/app/models/blog_sweeper.rb (modified) (1 diff)
- trunk/app/models/page_cache.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/models/blog_sweeper.rb
r1613 r1629 67 67 expire_fragment(%r{.*/articles/.*}) 68 68 unless Blog.default && Blog.default.cache_option == "caches_action_with_params" 69 PageCache.zap_pages('index.*', 'articles') 69 PageCache.zap_pages %w{index.* articles.* articles feedback 70 comments comments.* categories categories.* tags tags.* } 70 71 end 71 72 end trunk/app/models/page_cache.rb
r1624 r1629 27 27 return true if srcs.empty? 28 28 logger.debug "PageCache - About to delete: #{srcs.inspect}" 29 trash = Dir::tmpdir + "/typodel.#{UUID.random_create}"29 trash = RAILS_ROOT + "/tmp/typodel.#{UUID.random_create}" 30 30 FileUtils.makedirs(trash) 31 31 FileUtils.mv(srcs, trash, :force => true)
