2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

PERF: avoid preloading json in cases where it is not needed

(uploads / avatars / non GET requests)
This commit is contained in:
Sam 2015-05-20 17:12:16 +10:00
parent 45bdd23689
commit e5888cf090
16 changed files with 22 additions and 16 deletions

View file

@ -1,6 +1,6 @@
class RobotsTxtController < ApplicationController
layout false
skip_before_filter :check_xhr
skip_before_filter :preload_json, :check_xhr
def index
path = if SiteSetting.allow_index_in_robots_txt