mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +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:
parent
edd25e01a8
commit
850b042cab
16 changed files with 100 additions and 64 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue