Commits

chri...@81dbac14-341a-0410-aa85-cbcd92e6f43e  committed 50e3456

Force app-scope cache creation on first load

  • Participants
  • Parent commits edbf306

Comments (0)

Files changed (1)

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

             if (log.isInfoEnabled()) {
                 log.info("Created new instance of ServletCacheAdministrator");
             }
+
+            admin.getAppScopeCache(context);
         }
 
         return admin;
         newCache = (ServletCache) configureStandardListeners(newCache);
 
         if (config.getProperty(CACHE_ENTRY_EVENT_LISTENERS) != null) {
-            // Add any scope listeners that have been specified in the configuration
+            // Add any event listeners that have been specified in the configuration
             CacheEventListener[] listeners = getCacheEventListeners();
 
             for (int i = 0; i < listeners.length; i++) {