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:
parent
45c7ac2921
commit
6edf3169b4
@ -27,6 +27,12 @@ class RoomAction extends \wcf\data\AbstractDatabaseObjectAction implements \wcf\
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
|
@ -50,9 +50,9 @@ public static function deleteAll(array $objectIDs = array()) {
|
||||
$update->execute(array($select->fetchColumn()));
|
||||
}
|
||||
|
||||
// The transaction is being committed in parent::deleteAll()
|
||||
// The beginTransaction() call in there is simply ignored.
|
||||
return parent::deleteAll($objectIDs);
|
||||
$return = parent::deleteAll($objectIDs);
|
||||
WCF::getDB()->commitTransaction();
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user