1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Merge pull request #4716 from Jimmi08/patch-15

Fixes #3218 - Forum cache was not clearing when expected.
This commit is contained in:
Cameron 2022-03-27 10:28:39 -07:00 committed by GitHub
commit 1ef4124d6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)