[config] Don't access the file system nearly every call.

This commit is contained in:
Roel Spilker committed 2014-09-09 21:45:29 +02:00
1 parent 242e34730d
commit f3ac59efc6
1 file changed
+1 -1
@@ -127,7 +127,7 @@ public class FileSystemSourceCache {
Content content = ensureContent(directory);
synchronized (content) {
if (content.lastChecked != NEVER_CHECKED && now - content.lastChecked < RECHECK_FILESYSTEM && getLastModifiedOrMissing(configFile) == content.lastModified) {
if (content.lastChecked != NEVER_CHECKED && now - content.lastChecked < RECHECK_FILESYSTEM) {
return content.source;
}
content.lastChecked = now;