diff options
author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-01-11 22:56:49 +0000 |
---|---|---|
committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-01-11 22:56:49 +0000 |
commit | 85b196b5fe828c127d321527bd625a1727bad4aa (patch) | |
tree | 1557472b0431f05a4ae6b9e0fb42219d501ddefc /phpBB/admin/admin_words.php | |
parent | d7e485e5f6fd5f52e8bda854c3ad67c5b53337ae (diff) | |
download | forums-85b196b5fe828c127d321527bd625a1727bad4aa.tar forums-85b196b5fe828c127d321527bd625a1727bad4aa.tar.gz forums-85b196b5fe828c127d321527bd625a1727bad4aa.tar.bz2 forums-85b196b5fe828c127d321527bd625a1727bad4aa.tar.xz forums-85b196b5fe828c127d321527bd625a1727bad4aa.zip |
Implementation of an experimental cache manager.
git-svn-id: file:///svn/phpbb/trunk@3312 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_words.php')
-rw-r--r-- | phpBB/admin/admin_words.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/admin/admin_words.php b/phpBB/admin/admin_words.php index d4599191af..23a1d6a60f 100644 --- a/phpBB/admin/admin_words.php +++ b/phpBB/admin/admin_words.php @@ -132,6 +132,7 @@ if ($mode != '') $sql = ($word_id) ? "UPDATE " . WORDS_TABLE . " SET word = '" . sql_quote($word) . "', replacement = '" . sql_quote($replacement) . "' WHERE word_id = $word_id" : "INSERT INTO " . WORDS_TABLE . " (word, replacement) VALUES ('" . sql_quote($word) . "', '" . sql_quote($replacement) . "')"; $db->sql_query($sql); + $cache->destroy('word_censors'); $log_action = ($word_id) ? 'log_edit_word' : 'log_add_word'; add_admin_log($log_action, stripslashes($word)); @@ -153,6 +154,7 @@ if ($mode != '') $sql = "DELETE FROM " . WORDS_TABLE . " WHERE word_id = $word_id"; $db->sql_query($sql); + $cache->destroy('word_censors'); add_admin_log('log_delete_word'); |