diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-30 17:43:55 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-30 17:43:55 -0700 |
commit | ad95a61b62e70b839567c2e91e127fc2a1acb113 (patch) | |
tree | 92453dda1ef23216e364ec5dcca4768a89e8144e /activesupport/lib/active_support/cache | |
parent | c3d482f0b24dd9cddfbd8ea88976abbcc1e93f85 (diff) | |
parent | c33334fc921894ee035e79591732188a08b3eed9 (diff) | |
download | rails-ad95a61b62e70b839567c2e91e127fc2a1acb113.tar.gz rails-ad95a61b62e70b839567c2e91e127fc2a1acb113.tar.bz2 rails-ad95a61b62e70b839567c2e91e127fc2a1acb113.zip |
Merge pull request #4911 from Floppy/master
Reduce FILENAME_MAX_SIZE in ActiveSupport::Cache::FileStore
Diffstat (limited to 'activesupport/lib/active_support/cache')
-rw-r--r-- | activesupport/lib/active_support/cache/file_store.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache/file_store.rb b/activesupport/lib/active_support/cache/file_store.rb index b7712a4a15..8e6a3bc5a8 100644 --- a/activesupport/lib/active_support/cache/file_store.rb +++ b/activesupport/lib/active_support/cache/file_store.rb @@ -13,7 +13,7 @@ module ActiveSupport attr_reader :cache_path DIR_FORMATTER = "%03X" - FILENAME_MAX_SIZE = 230 # max filename size on file system is 255, minus room for timestamp and random characters appended by Tempfile (used by atomic write) + FILENAME_MAX_SIZE = 228 # max filename size on file system is 255, minus room for timestamp and random characters appended by Tempfile (used by atomic write) EXCLUDED_DIRS = ['.', '..'].freeze def initialize(cache_path, options = nil) |