1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

fix for not clearing forum cache

Fix #3218
This commit is contained in:
Jimako
2022-03-26 18:47:59 +01:00
committed by GitHub
parent 632e434711
commit 8c268193ba

View File

@@ -370,7 +370,7 @@ e107::css('inline',"
public function afterCreate($new_data, $old_data, $id)
{
// do something
e107::getCache()->clear_sys('forum_perms');
e107::getCache()->clear('forum_perms');
}
public function onCreateError($new_data, $old_data)
@@ -404,13 +404,13 @@ e107::css('inline',"
public function afterUpdate($new_data, $old_data, $id)
{
// do something
e107::getCache()->clear_sys('forum_perms',true);
e107::getCache()->clear('forum_perms',true);
}
public function afterDelete($deleted_data, $id, $deleted_check)
{
e107::getCache()->clear_sys('forum_perms');
e107::getCache()->clear('forum_perms');
}
public function onUpdateError($new_data, $old_data, $id)