Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | rename page_cache_extension option to default_static_extension | Francesco Rodriguez | 2012-10-03 | 1 | -0/+15 |
| | |||||
* | extract AP Page and Action caching to actionpack-deprecated_caching gem | Francesco Rodriguez | 2012-10-03 | 1 | -721/+16 |
| | |||||
* | move metal/caching_test into controller/caching_test | Francesco Rodriguez | 2012-09-27 | 1 | -5/+42 |
| | |||||
* | Add automatic template digests to all CacheHelper#cache calls (originally ↵ | David Heinemeier Hansson | 2012-08-29 | 1 | -5/+16 |
| | | | | spiked in the cache_digests plugin) *DHH* | ||||
* | set the controller under test so we no longer need the reset! method | Aaron Patterson | 2012-08-09 | 1 | -38/+4 |
| | |||||
* | Escape the extension when normalizing the action cache path. | Andrew White | 2012-05-20 | 1 | -1/+30 |
| | | | | | | | | | 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 parameter | Nico | 2012-05-02 | 1 | -1/+32 |
| | |||||
* | Remove default match without specified method | Jose and Yehuda | 2012-04-24 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964 | ||||
* | Add config.default_method_for_update to support PATCH | David Lee | 2012-02-22 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update. | ||||
* | Rack body respond to each and not to join | Santiago Pastorino | 2012-02-14 | 1 | -0/+12 |
| | | | | | | | This fixes undef `to_str' for Rack::Chunked::Body when using caches_action + streaming on an action Closes #5027 | ||||
* | Remove rescue_action from compatibility module and tests | Carlos Antonio da Silva | 2012-01-17 | 1 | -4/+0 |
| | |||||
* | Remove old compatibility methods not being used | Carlos Antonio da Silva | 2012-01-17 | 1 | -2/+0 |
| | |||||
* | Provide a class optin for page_cache_compression. | José Valim | 2011-12-24 | 1 | -3/+4 |
| | |||||
* | Gzip files on page caching | Andrey A.I. Sitnik | 2011-12-24 | 1 | -1/+40 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Allowing string as url argument for expire_action | Thomas von Deyen | 2011-12-06 | 1 | -0/+20 |
| | |||||
* | Ensure that the format isn't applied twice to the cache key, else it becomes ↵ | Christopher Meiklejohn | 2011-10-31 | 1 | -0/+13 |
| | | | | impossible to target with expire_action. | ||||
* | Merge pull request #2219 from kommen/fix_fragment_caching_squashed | Santiago Pastorino | 2011-10-13 | 1 | -0/+49 |
| | | | | Fix fragment caching (squashed commits) | ||||
* | Deprecate passing the template handler in the template name. | José Valim | 2011-09-22 | 1 | -1/+1 |
| | | | | | | For example, calling hello.erb is now deprecated. Since Rails 3.0 passing the handler had no effect whatsover. This commit simply deprecates such cases so we can clean up the code in later releases. | ||||
* | replaced and with && as per coding guidelines | Neeraj Singh | 2011-06-10 | 1 | -1/+1 |
| | |||||
* | The test name is misleading. It says | Neeraj Singh | 2011-06-10 | 1 | -1/+1 |
| | | | | | | | | | | | | test_should_cache_with_trailing_slash_on_url A trailing slash is removed when a page is cached. What the test meant to say was : a url with trailing slash should be cached and the cached page should not have any trailing slash. This patch clarifies the name a bit. | ||||
* | Always initialize @title in caching test to avoid uninitialized instance ↵ | wycats | 2011-05-22 | 1 | -0/+3 |
| | | | | variable warning | ||||
* | removes the RJS template handler | Xavier Noria | 2011-04-13 | 1 | -14/+0 |
| | |||||
* | Fix Action caching bug where an action that has a non-cacheable response ↵ | Cheah Chu Yeow | 2011-03-02 | 1 | -0/+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 Pathname | Andre Arko | 2011-02-06 | 1 | -0/+11 |
| | | | | | | For example, page_cache_directory = Rails.root.join("public/cache") Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | removing usesless variable assignments | Aaron Patterson | 2011-01-18 | 1 | -2/+0 |
| | |||||
* | Ensure that while caching a page rails takes into | Neeraj Singh | 2010-12-09 | 1 | -0/+16 |
| | | | | | | | | account the resolved mime type for the request [#6110 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Initialize ivars in tests. | Emilio Tagua | 2010-09-28 | 1 | -0/+1 |
| | |||||
* | Use parentheses when using assert_match followed by a regexp to avoid warnings. | Emilio Tagua | 2010-09-27 | 1 | -3/+3 |
| | |||||
* | removing some warnings | Aaron Patterson | 2010-09-18 | 1 | -5/+5 |
| | |||||
* | Removed deprecated RouteSet API, still many tests fail | Piotr Sarnacki | 2010-09-05 | 1 | -2/+2 |
| | |||||
* | Fixed double output from cache in no caching mode | David Heinemeier Hansson | 2010-06-08 | 1 | -15/+0 |
| | |||||
* | ActionCachingTestController rescues from all exceptions. Making sure that ↵ | Neeraj Singh | 2010-04-29 | 1 | -0/+31 |
| | | | | | | all the tests check for valid response. [#4468 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Make perform_caching work again, with the tests passing and backward compatible | Santiago Pastorino and Carl Lerche | 2010-04-15 | 1 | -10/+10 |
| | |||||
* | Consistent routing language | Joshua Peek | 2010-03-30 | 1 | -3/+3 |
| | |||||
* | Fixed a bunch of tests that failed in 1.9 because they assumed that a Rack ↵ | wycats | 2010-03-19 | 1 | -3/+6 |
| | | | | response was a String. | ||||
* | All tests pass without memoizing view_context | Carlhuda | 2010-03-18 | 1 | -2/+6 |
| | |||||
* | Some more tweaks on <% %>. | Carlhuda | 2010-03-16 | 1 | -4/+4 |
| | | | | * The cache helper is now semantically "mark this region for caching" * As a result, <% x = cache do %> no longer works | ||||
* | Break a window :/ | Jeremy Kemper | 2010-03-15 | 1 | -1/+1 |
| | |||||
* | Add deprecation notices for <% %>. | Carlhuda | 2010-03-15 | 1 | -13/+2 |
| | | | | | | | | | | | | | | | | * 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. | ||||
* | read_ and write_fragment cache preserve html safety yet cache strings only | Jeremy Kemper | 2010-03-14 | 1 | -0/+13 |
| | |||||
* | skip_relative_url_root url_for option is dead | Joshua Peek | 2010-03-09 | 1 | -1/+1 |
| | |||||
* | RouteSet#rewrite => url_for | Joshua Peek | 2010-03-09 | 1 | -2/+2 |
| | |||||
* | Move AC::UrlRewriter onto route set | Joshua Peek | 2010-03-09 | 1 | -3/+2 |
| | |||||
* | Get rid of the instance-level URL rewriter | wycats | 2010-03-09 | 1 | -1/+1 |
| | |||||
* | Refactor cache_store to use ActionController config | Carlhuda | 2010-03-04 | 1 | -7/+14 |
| | |||||
* | ActionController::Base.use_accept_header is not actually used anymore, so ↵ | Carl Lerche | 2010-03-03 | 1 | -3/+0 |
| | | | | let's deprecate it. | ||||
* | Fix tests for the request refactor | Carl Lerche | 2010-03-03 | 1 | -1/+2 |
| | |||||
* | If IntegrationSession is initialized with an objects that responds to ↵ | Carlhuda | 2010-02-26 | 1 | -1/+0 |
| | | | | #routes, automatically extend the URL helpers from the RouteSet onto it | ||||
* | Rename named_url_helpers to url_helpers and url_helpers to url_for | Carlhuda | 2010-02-26 | 1 | -1/+1 |
| | |||||
* | Rename metaclass to singleton_class | Carlhuda | 2010-02-25 | 1 | -1/+1 |
| |