lib/httparty-icebox.rb in httparty-icebox-delooks-0.0.5 vs lib/httparty-icebox.rb in httparty-icebox-delooks-0.0.6
- old
+ new
@@ -185,11 +185,12 @@
def exists?(key)
!@store[key].nil?
end
def stale?(key)
return true unless exists?(key)
- Time.now - created(key) > @timeout
+ #Time.now - created(key) > @timeout
+ false
end
private
def created(key)
@store[key][0]
end
@@ -219,10 +220,11 @@
def exists?(key)
File.exists?( @path.join(key) )
end
def stale?(key)
return true unless exists?(key)
- Time.now - created(key) > @timeout
+ #Time.now - created(key) > @timeout
+ false
end
private
def created(key)
File.mtime( @path.join(key) )
end