fix stylesheet cache to recover if file is on disk

This commit is contained in:
Sam
2015-05-22 11:21:16 +10:00
parent 17d843a0ad
commit 96dbeb8608
4 changed files with 50 additions and 11 deletions

View File

@ -1,7 +1,7 @@
class StylesheetCache < ActiveRecord::Base
self.table_name = 'stylesheet_cache'
MAX_TO_KEEP = 10
MAX_TO_KEEP = 50
def self.add(target,digest,content)