- 23 5月, 2015 1 次提交
-
-
由 Kasper Timm Hansen 提交于
Minitest sets an E constant to an empty string to save GC time. This clashes with autoloading tests which define an E constant.
-
- 08 4月, 2015 1 次提交
-
-
由 Kohei Suzuki 提交于
Currently `Rails.cache.clear` raises Errno::ENOENT if it's run just after cloning a new Rails project. It should succeed without removing files or directories.
-
- 12 3月, 2015 1 次提交
-
-
由 Matt Wilde 提交于
Skip the `:race_condition_ttl` branch if the option is 0 or nil. This fixes an issue with the redis cache, where this code will sometimes throw an error out of SETEX when passing 0 as the `expires_at`.
-
- 03 3月, 2015 1 次提交
-
-
由 Arthur Neves 提交于
-
- 02 3月, 2015 1 次提交
-
-
由 Rafael Mendonça França 提交于
[Robin Dupret + Rafael Mendonça França]
-
- 21 2月, 2015 1 次提交
-
-
由 Kasper Timm Hansen 提交于
Adds `read_multi` instrumentation formatted as: Caches multi read: - views/david/2/4184ab71db6849621a4d8820fcd2c0ad - views/david/2/4184ab71db6849621a4d8820fcd2c0ad - views/david/3/4184ab71db6849621a4d8820fcd2c0ad - views/david/3/4184ab71db6849621a4d8820fcd2c0ad
-
- 02 1月, 2015 2 次提交
-
-
由 Rafael Mendonça França 提交于
This code was there just to convert entries generated in Rails 4.0.0.beta1 applications to a supported format. It is almost unlikely that any existent application have this cache entry format in their caches at the point that Rails 5 will be released so we don't need this code anymore.
-
由 Rafael Mendonça França 提交于
We should convert when @v is defined not @value. The test was calling value first that already converts the entry so we are not catching this bug.
-
- 26 8月, 2014 1 次提交
-
-
由 Matthew Draper 提交于
Otherwise, it's possible for GC to run in between, and fail the test.
-
- 22 6月, 2014 1 次提交
-
-
由 Zuhao Wan 提交于
-
- 11 6月, 2014 1 次提交
-
-
由 Adam Panzer 提交于
-
- 05 3月, 2014 1 次提交
-
-
由 Godfrey Chan 提交于
This reverts commit 475c9658, reversing changes made to 705915ab. We decided that this is not worth busting everyone's cache as this seems like a very unlikely problem. The problem only occurs when the user is 1) not using a namespace, or 2) using the same namesapce for different *kinds* of cache items. The recommended "fix" is to put those cache items into their own namspace: id = 1 Rails.cache.fetch(id, namespace: "user"){ User.find(id) } ids = [1] Rails.cache.fetch(ids, namespace: "users"){ User.find(ids) } See the discussion on #14269 for details.
-
- 04 3月, 2014 1 次提交
-
-
由 Arthur Neves 提交于
`cache.fetch(['foo'])` and `cache.fetch('foo')` should generate different cache keys as they are not equivalents. [related #8615] [related #8614]
-
- 27 2月, 2014 1 次提交
-
-
由 Parker Selbert 提交于
The current implementation of `fetch_multi` returns an array and has no means to easily backtrack which names yielded which results. By changing the return value to a Hash we retain the name information. Hash#values can be used on the response if only the values are needed.
-
- 09 1月, 2014 1 次提交
-
-
由 Aaron Patterson 提交于
fixes #13547 The body may use the local cache during rendering. `call`ing the app doesn't mean that rendering is finished, so we need to wait until `close` is called on the body.
-
- 04 1月, 2014 2 次提交
-
-
由 Arthur Neves 提交于
:mem_cache_store should receive a list of hosts or a dalli client, otherwise raise it. Also adding a changelog.
-
由 Arthur Neves 提交于
:mem_cache_store require dalli, rescue Dalli exceptions, and follow Dalli API. Memcached gem, for instance, doesnt work anymore, as the API are different. As we already require one client, we should make sure that client works, and not accept others, and if someone wants to use another memcache client they can write their own store adapter.
-
- 11 9月, 2013 1 次提交
-
-
由 Murray Steele 提交于
-
- 30 8月, 2013 1 次提交
-
-
由 grosser 提交于
-
- 22 7月, 2013 1 次提交
-
-
由 Simeon Simeonov 提交于
Previously, the cache size of `ActiveSupport::Cache::MemoryStore` was calculated as the sum of the size of its entries, ignoring the size of keys and any data structure overhead. This could lead to the calculated cache size sometimes being 10-100x smaller than the memory used, e.g., in the case of small values. The size of a key/entry pair is now calculated via `#cached_size`: def cached_size(key, entry) key.to_s.bytesize + entry.size + PER_ENTRY_OVERHEAD end The value of `PER_ENTRY_OVERHEAD` is 240 bytes based on an [empirical estimation](https://gist.github.com/ssimeonov/6047200) for 64-bit MRI on 1.9.3 and 2.0. Fixes GH#11512 https://github.com/rails/rails/issues/11512
-
- 08 7月, 2013 1 次提交
-
-
由 Jade Tucker 提交于
-
- 06 5月, 2013 1 次提交
-
-
由 Daniel Schierbeck 提交于
Add a simple API for fetching a list of entries from the cache, where any missing entries are computed by a supplied block.
-
- 17 4月, 2013 1 次提交
-
-
由 Sam Ruby 提交于
-
- 10 4月, 2013 1 次提交
-
-
由 Anupam Choudhury 提交于
-
- 12 3月, 2013 1 次提交
-
-
由 Vipul A M 提交于
-
- 26 2月, 2013 1 次提交
-
-
由 Charles Jones 提交于
1. When comparing the directory to delete against the top level cache_path, use File.realpath to make sure we aren't comparing two unequal strings that point to the same path. This occurs, for example, when cache_path has a trailing slash, which it does in the default Rails configuration. Since the input to delete_empty_directories never has a trailing slash, the comparison will never be true and the top level cache directory (and above) may be deleted. However… 2. File.delete raises EPERM when trying to delete a directory, so no directories have ever been deleted. Changing the code to Dir.delete fixes that.
-
- 06 1月, 2013 1 次提交
-
-
由 Yves Senn 提交于
They don't add any benefits over `assert object.blank?` and `assert object.present?`
-
- 01 12月, 2012 1 次提交
-
-
由 Uriel Katz 提交于
Patched Marshal#load to work with constant autoloading (active_support/dependecies.rb) (issue #8167)
-
- 24 10月, 2012 1 次提交
-
-
由 Noah Hendrix 提交于
-
- 23 10月, 2012 1 次提交
-
-
由 Noah Hendrix 提交于
-
- 12 10月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 01 10月, 2012 5 次提交
-
-
由 Arun Agrawal 提交于
-
由 Brian Durand 提交于
-
由 Steve Klabnik 提交于
This time I used ack.
-
由 Steve Klabnik 提交于
-
由 Brian Durand 提交于
-
- 23 8月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 18 8月, 2012 2 次提交
-
-
由 Guillermo Iguaran 提交于
-
由 Guillermo Iguaran 提交于
memcache-client was deprecated in favour of dalli in 2010.
-
- 10 5月, 2012 1 次提交
-
-
由 grosser 提交于
-