Fixes clearing of cache after user group edited
authorMatthias Schmidt <gravatronics@live.com>
Sat, 29 Dec 2012 14:08:44 +0000 (15:08 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 29 Dec 2012 14:08:44 +0000 (15:08 +0100)
Currently, the user group option cache isn't cleared. This way, it is ensured, that whenever a user group is edited, the all user group related caches are cleared.

wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php

index 0b1bc2733b55ef1a8493449e8f3aeb83c4bd7c28..54600040d9323bd695b34e01ec248f8bc848887c 100644 (file)
@@ -180,7 +180,7 @@ class UserGroupEditor extends DatabaseObjectEditor implements IEditableCachedObj
         */
        public static function resetCache() {
                // clear cache
-               CacheHandler::getInstance()->clear(WCF_DIR.'cache/', 'cache.userGroup.php');
+               CacheHandler::getInstance()->clear(WCF_DIR.'cache/', 'cache.userGroup*');
                
                // clear sessions
                SessionHandler::resetSessions();