find_cache 0.1.4 → 0.1.5
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/CHANGE-LOG +3 -0
- data/README.rdoc +3 -3
- data/lib/find_cache/key_gen.rb +3 -3
- data/lib/find_cache/version.rb +1 -1
- metadata +1 -1
data/CHANGE-LOG
CHANGED
data/README.rdoc
CHANGED
@@ -88,10 +88,10 @@ UserDetail (`belongs_to :user`) ->
|
|
88
88
|
## Notes
|
89
89
|
|
90
90
|
If your worker thread does not kill itself after execution you should clean the find_cache_store manually. It can be done simple in ApplicationController of your rails app adding this method as after_filter
|
91
|
-
after_filter :
|
91
|
+
after_filter :clear_find_cache_store
|
92
92
|
|
93
|
-
def
|
94
|
-
FindCache::KeyGen.
|
93
|
+
def clear_find_cache_store
|
94
|
+
FindCache::KeyGen.clear_find_cache_store
|
95
95
|
end
|
96
96
|
|
97
97
|
Tested with dalli (https://github.com/mperham/dalli).
|
data/lib/find_cache/key_gen.rb
CHANGED
@@ -20,9 +20,9 @@ module FindCache
|
|
20
20
|
)
|
21
21
|
end
|
22
22
|
|
23
|
-
def self.
|
24
|
-
$find_cache_store.delete(
|
25
|
-
|
23
|
+
def self.clear_find_cache_store
|
24
|
+
$find_cache_store.delete(KeyGen.global_cache_key)
|
25
|
+
KeyGen.global_cache_key(true)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
data/lib/find_cache/version.rb
CHANGED