Changeset 1629

Show
Ignore:
Timestamp:
02/05/08 12:38:09 (3 months ago)
Author:
pdcawley
Message:

Hopefully something to fix the cache sweeping issue

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/models/blog_sweeper.rb

    r1613 r1629  
    6767    expire_fragment(%r{.*/articles/.*}) 
    6868    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.* } 
    7071    end 
    7172  end 
  • trunk/app/models/page_cache.rb

    r1624 r1629  
    2727    return true if srcs.empty? 
    2828    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}" 
    3030    FileUtils.makedirs(trash) 
    3131    FileUtils.mv(srcs, trash, :force => true)