mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
introduce rack:cache as a default, so users don't need to configure apache or nginx
under rack cache we are able to serve 620reqs a second per thin (on my machine) before it 12 (on my machine) reorganised so mini profilers can be cleanly disabled from config file added caching for categories index move production.rb to production.sample.rb
This commit is contained in:
@ -140,7 +140,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
def can_cache_content?
|
||||
# Don't cache unless we're in production mode
|
||||
return false unless Rails.env.production?
|
||||
return false unless Rails.env.production? || Rails.env == "profile"
|
||||
|
||||
# Don't cache logged in users
|
||||
return false if current_user.present?
|
||||
|
Reference in New Issue
Block a user