lifestream 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- 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)
|