Archived
fixed action caching
This commit is contained in:
@@ -15,7 +15,7 @@ gem 'activerecord-session_store'
|
|||||||
gem 'highlight_js-rails', github: 'RedstonerServer/highlight_js-rails'
|
gem 'highlight_js-rails', github: 'RedstonerServer/highlight_js-rails'
|
||||||
gem 'kaminari', github: 'jomo/kaminari', branch: 'patch-2' # pagination
|
gem 'kaminari', github: 'jomo/kaminari', branch: 'patch-2' # pagination
|
||||||
gem 'jquery-textcomplete-rails', github: 'RedstonerServer/jquery-textcomplete-rails' # @mentions
|
gem 'jquery-textcomplete-rails', github: 'RedstonerServer/jquery-textcomplete-rails' # @mentions
|
||||||
gem 'actionpack-action_caching'
|
gem 'actionpack-action_caching', github: 'antulik/actionpack-action_caching', ref: '8c6e52c69315d67437f480da5dce4b7c8737fb32'
|
||||||
|
|
||||||
# Gems used only for assets and not required
|
# Gems used only for assets and not required
|
||||||
# in production environments by default.
|
# in production environments by default.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
class StaticsController < ApplicationController
|
class StaticsController < ApplicationController
|
||||||
|
|
||||||
caches_action :online, expires_in: 10.seconds
|
caches_action :online, expires_in: 10.seconds, layout: false
|
||||||
|
|
||||||
def index
|
def index
|
||||||
if current_user
|
if current_user
|
||||||
|
|||||||
Reference in New Issue
Block a user