Commits

la...@81dbac14-341a-0410-aa85-cbcd92e6f43e  committed b75cff6

javadoc updated for developers to avoid a potential deadlock situation

  • Participants
  • Parent commits 0ee8d57

Comments (0)

Files changed (1)

File src/java/com/opensymphony/oscache/web/ServletCacheAdministrator.java

     }
 
     /**
-    * Put an object in the cache
+    * Put an object in the cache. This should only be called by a thread
+    * that received a {@link NeedsRefreshException}. Using session scope
+    * the thread has to insure that the session wasn't invalidated in
+    * the meantime. CacheTag and CacheFilter guarantee that the same
+    * cache is used in cancelUpdate and getFromCache.
     *
     * @param scope The cache scope
     * @param request The servlet request
     }
 
     /**
-    * Put an object in the cache
+    * Put an object in the cache. This should only be called by a thread
+    * that received a {@link NeedsRefreshException}. Using session scope
+    * the thread has to insure that the session wasn't invalidated in
+    * the meantime. CacheTag and CacheFilter guarantee that the same
+    * cache is used in cancelUpdate and getFromCache.
     *
     * @param scope The cache scope
     * @param request The servlet request