##// END OF EJS Templates
Removes action caching on /robots.txt....
Jean-Philippe Lang -
r15251:d4edd4d6a48d
parent child
Show More
@@ -11,7 +11,6 gem "builder", ">= 3.0.4"
11 gem "request_store", "1.0.5"
11 gem "request_store", "1.0.5"
12 gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
12 gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
13 gem "protected_attributes"
13 gem "protected_attributes"
14 gem "actionpack-action_caching"
15 gem "actionpack-xml_parser"
14 gem "actionpack-xml_parser"
16 gem "roadie-rails"
15 gem "roadie-rails"
17 gem "mimemagic"
16 gem "mimemagic"
@@ -27,12 +27,6 class ProjectsController < ApplicationController
27 accept_api_auth :index, :show, :create, :update, :destroy
27 accept_api_auth :index, :show, :create, :update, :destroy
28 require_sudo_mode :destroy
28 require_sudo_mode :destroy
29
29
30 after_filter :only => [:create, :edit, :update, :archive, :unarchive, :destroy] do |controller|
31 if controller.request.post?
32 controller.send :expire_action, :controller => 'welcome', :action => 'robots'
33 end
34 end
35
36 helper :custom_fields
30 helper :custom_fields
37 helper :issues
31 helper :issues
38 helper :queries
32 helper :queries
@@ -16,7 +16,6
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
17
18 class WelcomeController < ApplicationController
18 class WelcomeController < ApplicationController
19 caches_action :robots
20
19
21 def index
20 def index
22 @news = News.latest User.current
21 @news = News.latest User.current
General Comments 0
You need to be logged in to leave comments. Login now