mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
PERF: avoid preloading json in cases where it is not needed
(uploads / avatars / non GET requests)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
class ForumsController < ApplicationController
|
||||
|
||||
skip_before_filter :check_xhr
|
||||
skip_before_filter :preload_json, :check_xhr
|
||||
skip_before_filter :authorize_mini_profiler, only: [:status]
|
||||
skip_before_filter :redirect_to_login_if_required, only: [:status]
|
||||
|
||||
|
Reference in New Issue
Block a user