Sha256: b37f2b1bb572734617752e2aaa85d60141bda6cfbf7de0bb7d3807b1d7f3cd09

Contents?: true

Size: 394 Bytes

Versions: 101

Compression:

Stored size: 394 Bytes

Contents

#!/usr/bin/env ruby

require "knj/autoload"
include Knj
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
end

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
knjrbfw-0.0.116 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.115 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.114 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.113 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.111 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.110 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.109 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.108 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.107 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.105 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.104 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.103 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.102 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.101 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.100 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.99 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.98 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.97 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.96 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.95 lib/knj/erb/erb_cache_clean.rb