mirror of
https://github.com/e107inc/e107.git
synced 2025-07-09 09:13:25 +02:00
Merge pull request #4716 from Jimmi08/patch-15
Fixes #3218 - Forum cache was not clearing when expected.
This commit is contained in:
@ -370,7 +370,7 @@ e107::css('inline',"
|
|||||||
public function afterCreate($new_data, $old_data, $id)
|
public function afterCreate($new_data, $old_data, $id)
|
||||||
{
|
{
|
||||||
// do something
|
// do something
|
||||||
e107::getCache()->clear_sys('forum_perms');
|
e107::getCache()->clear('forum_perms');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onCreateError($new_data, $old_data)
|
public function onCreateError($new_data, $old_data)
|
||||||
@ -404,13 +404,13 @@ e107::css('inline',"
|
|||||||
public function afterUpdate($new_data, $old_data, $id)
|
public function afterUpdate($new_data, $old_data, $id)
|
||||||
{
|
{
|
||||||
// do something
|
// do something
|
||||||
e107::getCache()->clear_sys('forum_perms',true);
|
e107::getCache()->clear('forum_perms',true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function afterDelete($deleted_data, $id, $deleted_check)
|
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)
|
public function onUpdateError($new_data, $old_data, $id)
|
||||||
|
Reference in New Issue
Block a user