aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/caching
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Allow page_cache_directory to be set as a PathnameAndre Arko2011-02-061-1/+1
| | | | | | For example, page_cache_directory = Rails.root.join("public/cache") Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* html_safe.to_str makes no senseSantiago Pastorino2011-01-111-1/+1
|
* Edits to caching/fragments.Rizwan Reza2010-12-231-17/+39
|
* Remove require AS::Concern from places where is already inSantiago Pastorino2010-12-191-1/+0
|
* Add missing requireSantiago Pastorino2010-12-191-0/+1
|
* Ensure that while caching a page rails takes intoNeeraj Singh2010-12-091-7/+13
| | | | | | | | account the resolved mime type for the request [#6110 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.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.
* AC::Caching DRYupKrekoten' Marjan2010-10-181-5/+1
| | | | | | | Remove ActionController::Caching::Pages#caching_allowed because it duplicates ActionController::Caching#caching_allowed? Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Move uri parser to AS as URI.parser method to reuse it in AP and ARes.Emilio Tagua2010-09-282-10/+2
|
* Remove warning "URI.unescape is obsolete" from actionpack.Emilio Tagua2010-09-272-5/+4
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Remove warning "URI.unescape is obsolete" from actionpack.Emilio Tagua2010-09-272-2/+10
|
* Escape 'caching' when used in a sentence; remove unnessesary quotesJoost Baaij2010-08-262-10/+10
|
* cache_sweeper yields blank outputNeeraj Singh2010-06-081-0/+1
| | | | | | [#3914 state:open] Signed-off-by: José Valim <jose.valim@gmail.com>
* Change event namespace ordering to most-significant first [#4504 state:resolved]Justin George2010-05-022-2/+2
| | | | | | | | | More work still needs to be done on some of these names (render_template.action_view and render_template!.action_view particularly) but this allows (for example) /^sql/ to subscribe to all the various ORMs without further modification Signed-off-by: José Valim <jose.valim@gmail.com>
* 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>
* Clean up the config object in ActionPack. Create config_accessor which just ↵José Valim2010-04-221-4/+4
| | | | delegates to the config object, reducing the number of deprecations and add specific tests.
* Make perform_caching work again, with the tests passing and backward compatibleSantiago Pastorino and Carl Lerche2010-04-151-9/+9
|
* Make use of config.perform_cachingSantiago Pastorino2010-04-141-5/+5
|
* Replace 'RAILS_ROOT' to 'Rails.root' and 'RAILS_ENV' to 'Rails.env' in ↵Anil Wadghule2010-04-121-1/+1
| | | | significant places.
* Fix a bug in ActionDispatch::Static where Rails cannot find assets if ↵José Valim2010-04-081-2/+2
| | | | started in another directory which is not the RAILS_ROOT.
* response_body is an Array in 1.9, so an Array was being pushed onto the cachewycats2010-03-191-0/+2
|
* All tests pass without memoizing view_contextCarlhuda2010-03-181-19/+0
|
* 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
|
* Some more tweaks on <% %>.Carlhuda2010-03-161-2/+1
| | | | * The cache helper is now semantically "mark this region for caching" * As a result, <% x = cache do %> no longer works
* RJS may cache an arrayJeremy Kemper2010-03-151-1/+1
|
* Add deprecation notices for <% %>.Carlhuda2010-03-151-5/+11
| | | | | | | | | | | | | | | | * The approach is to compile <% %> into a method call that checks whether the value returned from a block is a String. If it is, it concats to the buffer and prints a deprecation warning. * <%= %> uses exactly the same logic to compile the template, which first checks to see whether it's compiling a block. * This should have no impact on other uses of block in templates. For instance, in <% [1,2,3].each do |i| %><%= i %><% end %>, the call to each returns an Array, not a String, so the result is not concatenated * In two cases (#capture and #cache), a String can be returned that should *never* be concatenated. We have temporarily created a String subclass called NonConcattingString which behaves (and is serialized) identically to String, but is not concatenated by the code that handles deprecated <% %> block helpers. Once we remove support for <% %> block helpers, we can remove NonConcattingString.
* to_str works hereJeremy Kemper2010-03-151-1/+1
|
* read_ and write_fragment cache preserve html safety yet cache strings onlyJeremy Kemper2010-03-141-6/+6
|
* Write strings to fragment cache, not outputbuffersJeremy Kemper2010-03-111-1/+3
|
* skip_relative_url_root url_for option is deadJoshua Peek2010-03-091-3/+3
|
* Use AS::Concern for caching modulesCarlhuda2010-03-042-24/+22
|
* Use safe_concat instead of trying to html_safe! what might be a frozen stringDavid Heinemeier Hansson2010-01-101-2/+2
|
* Fixed that fragment caching should return a cache hit as html_safe (or it ↵David Heinemeier Hansson2010-01-071-1/+1
| | | | would all just get escaped) [DHH]
* Use underscore in notification namespaces.José Valim2010-01-042-2/+2
|
* Use namespaces in notifications.José Valim2010-01-032-8/+14
|
* Remove ActionView inline logging to ActiveSupport::Notifications and create ↵José Valim2009-12-261-1/+1
| | | | ActionController::Base#log_event, so everything can be logged within one listener. Also expose log_process_action as a hook for different modules to include their own information during the action processing. This allow ActiveRecord to hook and any other ORM. Finally, this commit changes 'Processing' and 'Rendering' in logs to 'Processed' and 'Rendered' because at the point it's logged, everying already happened.
* Caching refactoringYehuda Katz2009-10-292-70/+67
|
* First pass at cleaning up action cachingYehuda Katz2009-10-281-92/+80
|
* Renamed Orchestra to Notifications once again [#3321 state:resolved]José Valim2009-10-152-6/+6
|
* Update Orchestra instrumentations and move part of logging to Orchestra.José Valim2009-10-152-27/+9
|
* Revert "Rename Orchestra to Notifications [#3321 state:resolved]"José Valim2009-10-152-6/+6
| | | | This reverts commit 8cbf825425dc8ad3770881ea4e100b9023c69ce2.
* Rename Orchestra to Notifications [#3321 state:resolved]Joshua Peek2009-10-142-6/+6
|
* Add Orchestra instrumentation to fragment and page caching.José Valim2009-09-202-18/+34
|
* Fixes "Cached fragment hit" written to log even if fragment is not cached ↵Yehuda Katz2009-08-081-2/+2
| | | | (Erik Andrejko) [#2917 state:resolved]
* 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