aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/digestor.rb
Commit message (Collapse)AuthorAgeFilesLines
* view_cache_dependency APIJamis Buck2013-01-081-7/+14
| | | | | | | | | | | | | A declarative API for specifying dependencies that affect template cache digest computation. In your controller, specify any of said dependencies: view_cache_dependency { "phone" if using_phone? } When the block is evaluated, the resulting value is included in the cache digest calculation, allowing you to generate different digests for effectively the same template. (Mostly useful if you're mucking with template load paths.)
* Digestor explicit dependency should not contain trailing whitespaceBrian Alexander2012-12-211-1/+1
| | | | test for rails/rails#8586
* Replace some global Hash usages with the new thread safe cache.thedarkone2012-12-141-16/+5
| | | | | | | | | | | | | | | | Summary of the changes: * Add thread_safe gem. * Use thread safe cache for digestor caching. * Replace manual synchronization with ThreadSafe::Cache in Relation::Delegation. * Replace @attribute_method_matchers_cache Hash with ThreadSafe::Cache. * Use TS::Cache to avoid the synchronisation overhead on listener retrieval. * Replace synchronisation with TS::Cache usage. * Use a preallocated array for performance/memory reasons. * Update the controllers cache to the new AS::Dependencies::ClassCache API. The original @controllers cache no longer makes much sense after @tenderlove's changes in 7b6bfe84f3 and f345e2380c. * Use TS::Cache in the connection pool to avoid locking overhead. * Use TS::Cache in ConnectionHandler.
* fix Digestor to be thread safe.Aaron Patterson2012-10-171-8/+30
| | | | | Add a lock on the cache so that we don't have concurrency issues when calculating the cache.
* Allow for deep directory path for view templates.Andy Shipman2012-10-111-1/+1
|
* Define just the cattr_reader.Rafael Mendonça França2012-09-051-1/+2
| | | | | This will trim down the API and avoid some error that can be made changing the cache object.
* Use the same logger that ActionView::Base for the DigestorRafael Mendonça França2012-09-051-2/+5
|
* Remove unneeded requiresRafael Mendonça França2012-09-051-7/+3
| | | | | We should not require all the core extensions inside the frameworks. The logger is already defined in the Action View framework.
* We dont need to include the name and the format in the digest -- source is ↵David Heinemeier Hansson2012-09-041-1/+1
| | | | authoritative enough
* Further improve RENDER_DEPENDENCY regexp commentsChristos Zisopoulos2012-08-301-1/+1
|
* Improve RENDER_DEPENDENCY regexp comment to keep the doc editor happy.Christos Zisopoulos2012-08-301-1/+1
|
* `Digestor` can now parse old style hash syntax for `render`Christos Zisopoulos2012-08-301-4/+4
|
* `Digestor` ignores most whitespace when parsing `render` invocationsChristos Zisopoulos2012-08-301-2/+2
|
* Add automatic template digests to all CacheHelper#cache calls (originally ↵David Heinemeier Hansson2012-08-291-0/+104
spiked in the cache_digests plugin) *DHH*