diff --git a/app/models/api_image.rb b/app/models/api_image.rb index dbd1a25..5b5e855 100644 --- a/app/models/api_image.rb +++ b/app/models/api_image.rb @@ -466,7 +466,7 @@ class APIImage < ApplicationRecord end def self.all_seen - Cache.fetch("img:all_seen", expires_in: 10.minutes) do + Cache.fetch("img:all_seen", expires_in: 1.minutes) do keys = all.map { |img| "yiffy2:stats:image:#{img.md5}" } values = Cache.redis.mget(*keys) results = {} diff --git a/app/views/yiff_rest/api_v2/manage/_nav.html.erb b/app/views/yiff_rest/api_v2/manage/_nav.html.erb index bb3489b..099b1ba 100644 --- a/app/views/yiff_rest/api_v2/manage/_nav.html.erb +++ b/app/views/yiff_rest/api_v2/manage/_nav.html.erb @@ -14,6 +14,9 @@ + <% if params[:controller] == "yiff_rest/api_v2/manage" %> <% elsif params[:controller] == "yiff_rest/api_v2/images" %> <% if %w[index iqdb query_iqdb].include?(params[:action]) %>