background_cache 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/background_cache.gemspec +1 -1
- data/lib/background_cache/helper.rb +7 -1
- metadata +5 -7
data/background_cache.gemspec
CHANGED
|
@@ -9,7 +9,13 @@ module BackgroundCache
|
|
|
9
9
|
# http://railsapi.com/doc/rails-v2.3.8/classes/ActionView/Helpers/CacheHelper.html
|
|
10
10
|
# ActionController::Caching::Fragments#fragment_for (undocumented)
|
|
11
11
|
# actionpack/lib/action_controller/caching/fragments.rb
|
|
12
|
-
|
|
12
|
+
perform_caching =
|
|
13
|
+
if @controller.respond_to?(:perform_caching)
|
|
14
|
+
@controller.perform_caching
|
|
15
|
+
else
|
|
16
|
+
ActionController::Base.perform_caching
|
|
17
|
+
end
|
|
18
|
+
if perform_caching
|
|
13
19
|
cache = @controller.read_fragment(name, options)
|
|
14
20
|
match = (
|
|
15
21
|
BackgroundCache.active? &&
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: background_cache
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 7
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 8
|
|
10
|
+
version: 0.2.8
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Winton Welsh
|
|
@@ -15,8 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-11-07 00:00:00
|
|
19
|
-
default_executable:
|
|
18
|
+
date: 2011-11-07 00:00:00 Z
|
|
20
19
|
dependencies:
|
|
21
20
|
- !ruby/object:Gem::Dependency
|
|
22
21
|
name: rails
|
|
@@ -138,7 +137,6 @@ files:
|
|
|
138
137
|
- spec/fixtures/rails/lib/background_cache_config.rb
|
|
139
138
|
- spec/spec_helper.rb
|
|
140
139
|
- tasks/background_cache.rake
|
|
141
|
-
has_rdoc: true
|
|
142
140
|
homepage: http://github.com/winton/background_cache
|
|
143
141
|
licenses: []
|
|
144
142
|
|
|
@@ -168,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
168
166
|
requirements: []
|
|
169
167
|
|
|
170
168
|
rubyforge_project:
|
|
171
|
-
rubygems_version: 1.
|
|
169
|
+
rubygems_version: 1.8.10
|
|
172
170
|
signing_key:
|
|
173
171
|
specification_version: 3
|
|
174
172
|
summary: Bust caches before your users do
|