Skip to content
Browse files

* Increase watch interval to save CPU cycles

  • Loading branch information...
1 parent 58d1c36 commit 65093d8b3b502db01cc67b27e31d7ea2d9da1d52 @joehewitt committed Sep 29, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 diskcache.js
  2. +1 −1 package.json
View
2 diskcache.js
@@ -254,7 +254,7 @@ subclass(Cache, events.EventEmitter, {
} else {
this.monitors[depPath] = [mon];
- fs.watchFile(depPath, {interval: 100}, _.bind(function(curr, prev) {
+ fs.watchFile(depPath, {interval: 0}, _.bind(function(curr, prev) {
if (curr.mtime.getTime() != prev.mtime.getTime()) {
D&&D("Modified", depPath, curr.mtime);
_.each(this.monitors[depPath].slice(), function(fn) { fn(); });
View
2 package.json
@@ -1,7 +1,7 @@
{
"name": "diskcache",
"description": "Caches data on disk and optionally in memory.",
- "version": "0.0.11",
+ "version": "0.0.12",
"homepage": "http://github.com/joehewitt/diskcache",
"repository": {
"type": "git",

0 comments on commit 65093d8

Please sign in to comment.
Something went wrong with that request. Please try again.