a comment
authorpeter <peter@jetbrains.com>
Tue, 24 Jan 2012 18:28:49 +0000 (19:28 +0100)
committerpeter <peter@jetbrains.com>
Tue, 24 Jan 2012 18:28:49 +0000 (19:28 +0100)
platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFS.java

index 80c55ad7a67e650c97239b9d8e9704c4e5ae6971..9623d30cec497a0c8602237b40cd607d28dccff0 100644 (file)
@@ -494,7 +494,8 @@ public class PersistentFS extends ManagingFS implements ApplicationComponent {
 
       ApplicationEx application = (ApplicationEx)ApplicationManager.getApplication();
       // we should cache every local files content
 
       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) {
       if ((!delegate.isReadOnly() || !application.isInternal() && !application.isUnitTestMode()) &&
           content.length <= PersistentFSConstants.FILE_LENGTH_TO_CACHE_THRESHOLD) {
         synchronized (INPUT_LOCK) {