mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-08 02:03:06 +00:00
Removes action caching on /robots.txt.
git-svn-id: http://svn.redmine.org/redmine/trunk@15633 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f4e7765e01
commit
d4edd4d6a4
1
Gemfile
1
Gemfile
@ -11,7 +11,6 @@ gem "builder", ">= 3.0.4"
|
|||||||
gem "request_store", "1.0.5"
|
gem "request_store", "1.0.5"
|
||||||
gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
|
gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
|
||||||
gem "protected_attributes"
|
gem "protected_attributes"
|
||||||
gem "actionpack-action_caching"
|
|
||||||
gem "actionpack-xml_parser"
|
gem "actionpack-xml_parser"
|
||||||
gem "roadie-rails"
|
gem "roadie-rails"
|
||||||
gem "mimemagic"
|
gem "mimemagic"
|
||||||
|
|||||||
@ -27,12 +27,6 @@ class ProjectsController < ApplicationController
|
|||||||
accept_api_auth :index, :show, :create, :update, :destroy
|
accept_api_auth :index, :show, :create, :update, :destroy
|
||||||
require_sudo_mode :destroy
|
require_sudo_mode :destroy
|
||||||
|
|
||||||
after_filter :only => [:create, :edit, :update, :archive, :unarchive, :destroy] do |controller|
|
|
||||||
if controller.request.post?
|
|
||||||
controller.send :expire_action, :controller => 'welcome', :action => 'robots'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
helper :custom_fields
|
helper :custom_fields
|
||||||
helper :issues
|
helper :issues
|
||||||
helper :queries
|
helper :queries
|
||||||
|
|||||||
@ -16,7 +16,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class WelcomeController < ApplicationController
|
class WelcomeController < ApplicationController
|
||||||
caches_action :robots
|
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@news = News.latest User.current
|
@news = News.latest User.current
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user