lifestream 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/VERSION +1 -1
- data/lib/lifestream/channel.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.5
|
data/lib/lifestream/channel.rb
CHANGED
|
@@ -27,7 +27,7 @@ module Lifestream
|
|
|
27
27
|
def response_with_cache
|
|
28
28
|
yield and return unless Lifestream.options[:cache]
|
|
29
29
|
cache_path = File.join(Lifestream.options[:cache], "#{name}.xml")
|
|
30
|
-
if !File.exist?(cache_path) || File.mtime(cache_path) +
|
|
30
|
+
if !File.exist?(cache_path) || File.mtime(cache_path) + Lifestream.options[:cache_expiration] < Time.now
|
|
31
31
|
yield
|
|
32
32
|
cache = File.new(cache_path, 'wb')
|
|
33
33
|
cache.flock(File::LOCK_EX)
|