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.94 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.93 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.92 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.91 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.90 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.89 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.88 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.87 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.86 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.85 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.84 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.83 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.82 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.81 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.80 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.79 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.78 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.77 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.75 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.74 lib/knj/erb/erb_cache_clean.rb