summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-10 20:34:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-10 20:34:37 +0000
commitd4edd4d6a48da889e7447c80ecccf6f3fb183d98 (patch)
tree8d7cfe654651dbee477d046819cbd8a1acfb4869
parentf4e7765e0101dcc869d0457bf581932c3c024944 (diff)
downloadredmine-d4edd4d6a48da889e7447c80ecccf6f3fb183d98.tar.gz
redmine-d4edd4d6a48da889e7447c80ecccf6f3fb183d98.zip
Removes action caching on /robots.txt.
git-svn-id: http://svn.redmine.org/redmine/trunk@15633 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--Gemfile1
-rw-r--r--app/controllers/projects_controller.rb6
-rw-r--r--app/controllers/welcome_controller.rb1
3 files changed, 0 insertions, 8 deletions
diff --git a/Gemfile b/Gemfile
index 2ddfd9208..8bb386bc1 100644
--- a/Gemfile
+++ b/Gemfile
@@ -11,7 +11,6 @@ gem "builder", ">= 3.0.4"
gem "request_store", "1.0.5"
gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
gem "protected_attributes"
-gem "actionpack-action_caching"
gem "actionpack-xml_parser"
gem "roadie-rails"
gem "mimemagic"
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 8753badde..15ab4c86e 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -27,12 +27,6 @@ class ProjectsController < ApplicationController
accept_api_auth :index, :show, :create, :update, :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 :issues
helper :queries
diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb
index 717c72916..fe06d873f 100644
--- a/app/controllers/welcome_controller.rb
+++ b/app/controllers/welcome_controller.rb
@@ -16,7 +16,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class WelcomeController < ApplicationController
- caches_action :robots
def index
@news = News.latest User.current