don't count json and rss views towards traffic counter
This commit is contained in:
parent
175ff9d2b1
commit
a7d463999d
|
@ -16,7 +16,7 @@ class ApplicationController < ActionController::Base
|
|||
def increase_traffic_counter
|
||||
@traffic = 1.0
|
||||
|
||||
if user_is_spider?
|
||||
if user_is_spider? || [ "json", "rss" ].include?(params[:format])
|
||||
return true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue