aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/caching/fragments.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #14137 from dasch/better-fragment-cache-instrumentationRafael Mendonça França2014-05-141-1/+7
|\ | | | | | | | | | | | | Add controller and action name to the fragment caching instrumentation payload Conflicts: actionpack/CHANGELOG.md
| * Add controller and action name to the instrumentation payloadDaniel Schierbeck2014-05-101-1/+7
|/
* update AC::Caching documentation [ci skip]Francesco Rodriguez2012-09-221-18/+18
|
* Modernize the documentation for view caching somewhatDavid Heinemeier Hansson2012-08-081-37/+7
|
* find(:all) => allAkira Matsuda2011-07-081-2/+2
|
* remove warning: assigned but unused variableSantiago Pastorino2011-06-081-1/+0
|
* html_safe.to_str makes no senseSantiago Pastorino2011-01-111-1/+1
|
* Edits to caching/fragments.Rizwan Reza2010-12-231-17/+39
|
* Escape 'caching' when used in a sentence; remove unnessesary quotesJoost Baaij2010-08-261-3/+3
|
* Change event namespace ordering to most-significant first [#4504 state:resolved]Justin George2010-05-021-1/+1
| | | | | | | | | 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>
* All tests pass without memoizing view_contextCarlhuda2010-03-181-19/+0
|
* 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
|
* 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-041-1/+1
|
* Use namespaces in notifications.José Valim2010-01-031-6/+8
|
* 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.
* Renamed Orchestra to Notifications once again [#3321 state:resolved]José Valim2009-10-151-4/+4
|
* Update Orchestra instrumentations and move part of logging to Orchestra.José Valim2009-10-151-19/+7
|
* Revert "Rename Orchestra to Notifications [#3321 state:resolved]"José Valim2009-10-151-4/+4
| | | | This reverts commit 8cbf825425dc8ad3770881ea4e100b9023c69ce2.
* Rename Orchestra to Notifications [#3321 state:resolved]Joshua Peek2009-10-141-4/+4
|
* Add Orchestra instrumentation to fragment and page caching.José Valim2009-09-201-12/+20
|
* Fixes "Cached fragment hit" written to log even if fragment is not cached ↵Yehuda Katz2009-08-081-2/+2
| | | | (Erik Andrejko) [#2917 state:resolved]
* Merge with docrailsPratik Naik2008-12-071-9/+17
|
* write_fragment returns content if caching is disabled [#846 state:resolved]Joshua Peek2008-11-221-11/+11
|
* Remove stuff that was deprecated in 2-1-stablePratik Naik2008-10-211-26/+0
|
* Merge with docrails.Pratik Naik2008-07-161-1/+1
|
* Get buffer for fragment cache from template's @output_bufferJoshua Peek2008-07-151-3/+1
|
* Improve readabilityJeremy Kemper2008-06-241-8/+10
|
* Add fragment_exist? and exist? methods to cache stores. [#203 state:resolved]José Valim2008-05-191-1/+12
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Move fragment caching from special helper methods to TemplateHandler. Closes ↵Jeremy Kemper2008-01-101-26/+0
| | | | | | #10754 [Josh Peek] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8619 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved the caching stores from ActionController::Caching::Fragments::* to ↵David Heinemeier Hansson2008-01-031-0/+153
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