{"action":"created","issue":{"url":"https://api.github.com/repos/jsdf/browserify-incremental/issues/8","labels_url":"https://api.github.com/repos/jsdf/browserify-incremental/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/jsdf/browserify-incremental/issues/8/comments","events_url":"https://api.github.com/repos/jsdf/browserify-incremental/issues/8/events","html_url":"https://github.com/jsdf/browserify-incremental/issues/8","id":59709367,"number":8,"title":"browserifyinc needs to run twice before it'll use the cache","user":{"login":"ianthehenry","id":877257,"avatar_url":"https://avatars.githubusercontent.com/u/877257?v=3","gravatar_id":"","url":"https://api.github.com/users/ianthehenry","html_url":"https://github.com/ianthehenry","followers_url":"https://api.github.com/users/ianthehenry/followers","following_url":"https://api.github.com/users/ianthehenry/following{/other_user}","gists_url":"https://api.github.com/users/ianthehenry/gists{/gist_id}","starred_url":"https://api.github.com/users/ianthehenry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianthehenry/subscriptions","organizations_url":"https://api.github.com/users/ianthehenry/orgs","repos_url":"https://api.github.com/users/ianthehenry/repos","events_url":"https://api.github.com/users/ianthehenry/events{/privacy}","received_events_url":"https://api.github.com/users/ianthehenry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-03T21:34:47Z","updated_at":"2015-07-15T22:58:20Z","closed_at":null,"body":"This is a weird thing I'm seeing: if I run `browserifyinc`, pointing it at a cache file that doesn't exist, my build takes 28 seconds (and it creates the cache file), So far, expected.\r\n\r\nBut if I re-run it, it takes 28 seconds *again*. Only on the third run does it pick up the cache file, and I get the nice 2.25 second built time that I want.\r\n\r\nThis isn't really a problem, since I haven't seen a reason (apart from testing) to blow out my cache, but it's... odd."},"comment":{"url":"https://api.github.com/repos/jsdf/browserify-incremental/issues/comments/121771829","html_url":"https://github.com/jsdf/browserify-incremental/issues/8#issuecomment-121771829","issue_url":"https://api.github.com/repos/jsdf/browserify-incremental/issues/8","id":121771829,"user":{"login":"AgentME","id":577345,"avatar_url":"https://avatars.githubusercontent.com/u/577345?v=3","gravatar_id":"","url":"https://api.github.com/users/AgentME","html_url":"https://github.com/AgentME","followers_url":"https://api.github.com/users/AgentME/followers","following_url":"https://api.github.com/users/AgentME/following{/other_user}","gists_url":"https://api.github.com/users/AgentME/gists{/gist_id}","starred_url":"https://api.github.com/users/AgentME/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgentME/subscriptions","organizations_url":"https://api.github.com/users/AgentME/orgs","repos_url":"https://api.github.com/users/AgentME/repos","events_url":"https://api.github.com/users/AgentME/events{/privacy}","received_events_url":"https://api.github.com/users/AgentME/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T22:58:20Z","updated_at":"2015-07-15T22:58:20Z","body":"I'm seeing this issue always. I notice the cache file after the first run has an empty `mtimes` object (if brfs is used, then mtimes contains only the files that were included via `fs.readFileSync`). After the second run, the `mtimes` object is correctly populated and future browserifyinc runs are faster."}}