Skip to content

Commit

Permalink
Switch cache helpers to new Cache class
Browse files Browse the repository at this point in the history
  • Loading branch information
fny committed Jun 30, 2013
1 parent e8a570c commit 3b67683
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/language_pack/rails3.rb
Expand Up @@ -45,7 +45,7 @@ def run_assets_precompile_rake_task
puts "Detected manifest.yml, assuming assets were compiled locally"
else
FileUtils.mkdir_p('public')
cache_load "public/assets"
cache.load "public/assets"

ENV["RAILS_GROUPS"] ||= "assets"
ENV["RAILS_ENV"] ||= "production"
Expand All @@ -65,14 +65,14 @@ def run_assets_precompile_rake_task
run("env PATH=$PATH:bin bundle exec rake assets:clean_expired 2>&1")
if $?.success?
log "assets_clean_expired", :status => "success"
cache_store "public/assets"
cache.store "public/assets"
else
log "assets_clean_expired", :status => "failure"
cache_clear "public/assets"
cache.clear "public/assets"
end
end
else
cache_clear "public/assets"
cache.clear "public/assets"
end
else
log "assets_precompile", :status => "failure"
Expand Down

0 comments on commit 3b67683

Please sign in to comment.