aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/caching/actions.rb
Commit message (Collapse)AuthorAgeFilesLines
* Escape the extension when normalizing the action cache path.Andrew White2012-05-201-2/+3
| | | | | | | | | Although no recognized formats use non-ASCII characters, sometimes they can be included in the :format parameter because of invalid URLS. To prevent encoding incompatibility errors we need to escape them before passing the path to URI.unescape. Closes #4379
* added proc evaluation for action cache's layout parameterNico2012-05-021-2/+4
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-03-271-1/+1
|\
| * Fix AC actions caching commentAlexey Vakhov2012-03-241-1/+1
| |
* | ActionController caching small String#split optimizationAlexey Vakhov2012-03-241-2/+2
|/
* Rack body respond to each and not to joinSantiago Pastorino2012-02-141-2/+4
| | | | | | | This fixes undef `to_str' for Rack::Chunked::Body when using caches_action + streaming on an action Closes #5027
* Updates documentaton to indicate that :expires_in can be used with all cache ↵dev2012-01-261-1/+2
| | | | stores.
* Changed 'proc' to 'Proc.new' in ActionController::Caching::Actions descriptionAlejandro Andrés2012-01-121-2/+2
|
* Allowing string as url argument for expire_actionThomas von Deyen2011-12-061-3/+2
|
* this should never return nil, so no use for "try"Aaron Patterson2011-10-311-1/+1
|
* Ensure that the format isn't applied twice to the cache key, else it becomes ↵Christopher Meiklejohn2011-10-311-1/+1
| | | | impossible to target with expire_action.
* Typo fixOge Nnadi2011-08-131-1/+1
|
* Remove extra white spaces on ActionPack docs.Sebastian Martinez2011-05-231-2/+2
|
* Proc objects for cache_path for caches_action no longer need controller ↵Ryan Bigg2011-03-261-7/+6
| | | | object, nor to use send when calling routing helpers
* Action Pack typos.R.T. Lechow2011-03-051-1/+1
|
* Fix Action caching bug where an action that has a non-cacheable response ↵Cheah Chu Yeow2011-03-021-3/+5
| | | | | | | | | | always renders a nil response body. It now correctly renders the response body. Note that only GET and HTTP 200 responses can be cached. [#6480 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* makes a pass to the action caching rdocXavier Noria2010-12-081-32/+41
|
* Add to documentation that action caching doesNeeraj Singh2010-12-061-0/+5
| | | | | | handle HTTP_ACCEPT attribute properly and might provide wrong result. Use params[:format] to avoid this issue.
* 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