}
if ($clearAll) {
- // also reset ACL Cache
- CRM_ACL_BAO_Cache::resetCache();
-
- // also reset memory cache if any
- CRM_Utils_System::flushCache();
+ self::resetCaches();
}
}
+ /**
+ * Cleanup ACL and System Level caches
+ */
+ public static function resetCaches() {
+ // also reset ACL Cache
+ // @todo why is this called when CRM_Utils_System::flushCache() does it as well.
+ CRM_ACL_BAO_Cache::resetCache();
+
+ // also reset memory cache if any
+ CRM_Utils_System::flushCache();
+ }
+
/**
* The next two functions are internal functions used to store and retrieve session from
* the database cache. This keeps the session to a limited size and allows us to