mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
kill the cache
git-svn-id: file:///svn/phpbb/trunk@6432 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -176,6 +176,7 @@ class acp_bbcodes
|
|||||||
$sql_ary['bbcode_id'] = (int) $bbcode_id;
|
$sql_ary['bbcode_id'] = (int) $bbcode_id;
|
||||||
|
|
||||||
$db->sql_query('INSERT INTO ' . BBCODES_TABLE . $db->sql_build_array('INSERT', $sql_ary));
|
$db->sql_query('INSERT INTO ' . BBCODES_TABLE . $db->sql_build_array('INSERT', $sql_ary));
|
||||||
|
$cache->destroy('sql', BBCODES_TABLE);
|
||||||
|
|
||||||
$lang = 'BBCODE_ADDED';
|
$lang = 'BBCODE_ADDED';
|
||||||
$log_action = 'LOG_BBCODE_ADD';
|
$log_action = 'LOG_BBCODE_ADD';
|
||||||
@@ -186,6 +187,7 @@ class acp_bbcodes
|
|||||||
SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '
|
SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '
|
||||||
WHERE bbcode_id = ' . $bbcode_id;
|
WHERE bbcode_id = ' . $bbcode_id;
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
|
$cache->destroy('sql', BBCODES_TABLE);
|
||||||
|
|
||||||
$lang = 'BBCODE_EDITED';
|
$lang = 'BBCODE_EDITED';
|
||||||
$log_action = 'LOG_BBCODE_EDIT';
|
$log_action = 'LOG_BBCODE_EDIT';
|
||||||
@@ -211,6 +213,7 @@ class acp_bbcodes
|
|||||||
if (confirm_box(true))
|
if (confirm_box(true))
|
||||||
{
|
{
|
||||||
$db->sql_query('DELETE FROM ' . BBCODES_TABLE . " WHERE bbcode_id = $bbcode_id");
|
$db->sql_query('DELETE FROM ' . BBCODES_TABLE . " WHERE bbcode_id = $bbcode_id");
|
||||||
|
$cache->destroy('sql', BBCODES_TABLE);
|
||||||
add_log('admin', 'LOG_BBCODE_DELETE', $row['bbcode_tag']);
|
add_log('admin', 'LOG_BBCODE_DELETE', $row['bbcode_tag']);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user