lib/knj/erb/erb_cache_clean.rb in knjrbfw-0.0.8 vs lib/knj/erb/erb_cache_clean.rb in knjrbfw-0.0.9
- old
+ new
@@ -5,16 +5,16 @@
Os.chdir_file(__FILE__)
curtime = Time.new.to_i
Dir.new("cache").each do |filename|
- if filename != "." and filename != ".." and filename != "README"
- fn = "cache/#{filename}"
- file = File.new(fn)
- mtime = file.mtime.to_i
- diftime = curtime - mtime
-
- if diftime >= (3600 * 48)
- File.delete(fn)
- end
- end
+ if filename != "." and filename != ".." and filename != "README"
+ fn = "cache/#{filename}"
+ file = File.new(fn)
+ mtime = file.mtime.to_i
+ diftime = curtime - mtime
+
+ if diftime >= (3600 * 48)
+ File.delete(fn)
+ end
+ end
end
\ No newline at end of file