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.49 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.48 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.47 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.46 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.45 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.44 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.43 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.42 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.41 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.40 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.39 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.38 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.37 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.36 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.35 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.34 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.33 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.32 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.31 lib/knj/erb/erb_cache_clean.rb
knjrbfw-0.0.30 lib/knj/erb/erb_cache_clean.rb