1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Clear cache after pruning

This commit is contained in:
Tim Düsterhus 2013-03-11 22:33:17 +01:00
parent 45c7ac2921
commit 6edf3169b4
2 changed files with 9 additions and 3 deletions

View File

@ -27,6 +27,12 @@ class RoomAction extends \wcf\data\AbstractDatabaseObjectAction implements \wcf\
*/ */
protected $permissionsUpdate = array('admin.chat.canEditRoom'); protected $permissionsUpdate = array('admin.chat.canEditRoom');
/**
* Resets cache if any of the listed actions is invoked
* @var array<string>
*/
protected $resetCache = array('create', 'delete', 'toggle', 'update', 'updatePosition', 'prune');
/** /**
* Fixes create to append new rooms. * Fixes create to append new rooms.
*/ */

View File

@ -50,9 +50,9 @@ public static function deleteAll(array $objectIDs = array()) {
$update->execute(array($select->fetchColumn())); $update->execute(array($select->fetchColumn()));
} }
// The transaction is being committed in parent::deleteAll() $return = parent::deleteAll($objectIDs);
// The beginTransaction() call in there is simply ignored. WCF::getDB()->commitTransaction();
return parent::deleteAll($objectIDs); return $return;
} }
/** /**