Index: MRUMemoryStore.java
===================================================================
RCS file: /home/cvspublic/xml-cocoon2/src/org/apache/cocoon/components/store/MRUMemoryStore.java,v
retrieving revision 1.15
diff -u -r1.15 MRUMemoryStore.java
--- MRUMemoryStore.java	2001/08/24 00:33:10	1.15
+++ MRUMemoryStore.java	2001/08/24 18:45:06
@@ -218,12 +218,20 @@
 	    "Garbage collection complete, total memory = " +
 	    this.jvm.totalMemory() + ", free memory = " + this.jvm.freeMemory()
 	  );
+           getLogger().debug(
+      "Store size BEFORE cleanup=" + 
+      this.cache.size()
+    );
           synchronized (this) {
             while ((this.cache.size() > 0) && (this.jvm.freeMemory() < this.freememory)) {
               this.free();
             }
           }
         }
+        getLogger().debug(
+      "Store size AFTER cleanup=" + 
+      this.cache.size()
+    );
         try {
           Thread.currentThread().sleep(this.cleanupthreadinterval * 1000);
         } catch (InterruptedException ignore) {}
@@ -339,7 +347,9 @@
     getLogger().debug("Removing object from store");
     this.cache.remove(key);
     this.mrulist.remove(key);
-    this.fsstore.remove(getFileName(key.toString()));
+    if (this.filesystem) {
+      this.fsstore.remove(getFileName(key.toString()));
+    }
   }
 
   /**

