aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/caching/actions.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move uri parser to AS as URI.parser method to reuse it in AP and ARes.Emilio Tagua2010-09-281-3/+1
|
* Remove warning "URI.unescape is obsolete" from actionpack.Emilio Tagua2010-09-271-4/+2
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Remove warning "URI.unescape is obsolete" from actionpack.Emilio Tagua2010-09-271-1/+5
|
* Escape 'caching' when used in a sentence; remove unnessesary quotesJoost Baaij2010-08-261-7/+7
|
* ActionCachingTestController rescues from all exceptions. Making sure that ↵Neeraj Singh2010-04-291-1/+1
| | | | | | all the tests check for valid response. [#4468 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* response_body is an Array in 1.9, so an Array was being pushed onto the cachewycats2010-03-191-0/+2
|
* Remove caching's dependency on view_context. Also, make it so that the ↵Carlhuda2010-03-181-10/+14
| | | | layout is always rendered the same way (so that layout dependencies on the action actually being rendered aren't masked on the first render)
* @layout is a confusing name... use @cache_layoutCarlhuda2010-03-181-3/+3
|
* Caching refactoringYehuda Katz2009-10-291-69/+66
|
* First pass at cleaning up action cachingYehuda Katz2009-10-281-92/+80
|
* Replace _action_view with view_context to reflect that it is public and that ↵Yehuda Katz2009-08-061-2/+1
| | | | it does not need to be an ActionView instance
* Cleaning up if defined?(ActionController::Http) blocks from the pre new base ↵Yehuda Katz + Carl Lerche2009-06-171-13/+4
| | | | era.
* Remove some defined?(Http) checksYehuda Katz + Carl Lerche2009-06-171-8/+1
|
* Fix failing ActionCacheFilter tests due to around filter changes.Yehuda Katz + Carl Lerche2009-05-271-1/+1
|
* Make Filter#filter work with around filtersPratik Naik2009-05-251-11/+13
|
* Modified caching implementation to work with NewBaseYehuda Katz + Carl Lerche2009-05-191-3/+19
|
* Fix action-cached exception responses.John F. Douthat2009-04-301-1/+9
| | | | | | | | Methods raising ActiveRecord::RecordNotFound were returning 404 on first request and 200 OK with blank body on subsequent requests. [#2533 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Deprecate template, session, assigns, and layout accessors on response ↵Joshua Peek2009-04-281-1/+1
| | | | object. Instead access them through the controller instance. This mainly affects functional test assertions.
* Merge docrailslifo2009-04-171-1/+1
|
* Ensure correct content type is declared after cache hits on actions with ↵Mislav Marohnić2009-03-101-17/+10
| | | | | | string cache keys [#1585 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use status response accessor instead of the 'Status' headerJoshua Peek2008-12-191-1/+1
|
* Merge docrailsPratik Naik2008-09-031-2/+2
|
* Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-311-1/+1
| | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
* Move layout rendering logic to ActionView::BasePratik Naik2008-08-311-1/+1
|
* Disable the Accept header by defaultMichael Koziarski2008-07-071-4/+1
| | | | | | | | The accept header is poorly implemented by browsers and causes strange errors when used on public sites where crawlers make requests too. You should use formatted urls (e.g. /people/1.xml) to support API clients. Alternatively to re-enable it you need to set: config.action_controller.use_accept_header = true A special case remains for ajax requests which will have a javascript format for the base resource (/people/1) if the X-Requested-With header is present. This lets ajax pages still use format.js despite there being no params[:format]
* Allow caches_action to accept cache store options. [#416 state:resolved]josevalim2008-07-041-7/+11
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve ActionCaching's format-handlingJonathan del Strother2008-06-111-12/+29
| | | | | | | | Make ActionCaching more aware of different mimetype formats. It will now use request.format to look up the cache type, in addition to the path extension. When expiring caches, the request format no longer affects which cache is expired. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Allow caches_action to accept a layout option [#198 state:resolved]josevalim2008-06-031-3/+17
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Added conditional support to caches_action [José Valim] [#166 state:resolved]Joshua Peek2008-05-141-18/+19
|
* Remove ActionController::Base#view_controller_internalsPratik Naik2008-04-211-5/+0
| | | | | | Get rid of ActionController::Base#view_controller_internals flag and use @@protected_view_variables for storing the list of controller specific instance variables which should be inaccessible inside views.
* Moved the caching stores from ActionController::Caching::Fragments::* to ↵David Heinemeier Hansson2008-01-031-0/+148
ActiveSupport::Cache::*. If you're explicitly referring to a store, like ActionController::Caching::Fragments::MemoryStore, you need to update that reference with ActiveSupport::Cache::MemoryStore [DHH] Deprecated ActionController::Base.fragment_cache_store for ActionController::Base.cache_store [DHH] All fragment cache keys are now by default prefixed with the 'views/' namespace [DHH] Added ActiveRecord::Base.cache_key to make it easier to cache Active Records in combination with the new ActiveSupport::Cache::* libraries [DHH] Added ActiveSupport::Gzip.decompress/compress(source) as an easy wrapper for Zlib [Tobias Luetke] Included MemCache-Client to make the improved ActiveSupport::Cache::MemCacheStore work out of the box [Bob Cottrell, Eric Hodel] Added config.cache_store to environment options to control the default cache store (default is FileStore if tmp/cache is present, otherwise MemoryStore is used) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de