From da31ac972fa8be615512dbd24d9a53cb5f4ce29b Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 24 Jan 2012 19:28:49 +0100 Subject: [PATCH] a comment --- .../intellij/openapi/vfs/newvfs/persistent/PersistentFS.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFS.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFS.java index 80c55ad7a67e..9623d30cec49 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFS.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFS.java @@ -494,7 +494,8 @@ public class PersistentFS extends ManagingFS implements ApplicationComponent { ApplicationEx application = (ApplicationEx)ApplicationManager.getApplication(); // we should cache every local files content - // because the local history feature is currently depends on this cache + // because the local history feature is currently depends on this cache, + // perforce offline mode as well if ((!delegate.isReadOnly() || !application.isInternal() && !application.isUnitTestMode()) && content.length <= PersistentFSConstants.FILE_LENGTH_TO_CACHE_THRESHOLD) { synchronized (INPUT_LOCK) { -- 2.32.0