Cache clear hooks, track length update fix

This commit is contained in:
magnolia-fan
2011-11-29 03:22:29 +04:00
parent 549e27e0df
commit 94ae2ff3b0
7 changed files with 26 additions and 13 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class ArtistController < ApplicationController
title: @artist.name,
status: @artist.status_str,
callback: {object: :player, action: :updateLibrary},
cache_for: 1.day
cache_for: (1.day if @artist.status_str == "ok")
)
end