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:
commit
1ef4124d6c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user