lib/mini_profiler/storage/memory_store.rb in rack-mini-profiler-0.1.7 vs lib/mini_profiler/storage/memory_store.rb in rack-mini-profiler-0.1.8
- old
+ new
@@ -50,13 +50,9 @@
@user_view_lock.synchronize {
@user_view_cache[user]
}
end
-
- private
-
-
def cleanup_cache
expire_older_than = ((Time.now.to_f - MiniProfiler::MemoryStore::EXPIRE_TIMER_CACHE) * 1000).to_i
@timer_struct_lock.synchronize {
@timer_struct_cache.delete_if { |k, v| v['Root']['StartMilliseconds'] < expire_older_than }
}