From 7d3ee6243aae55a92d36912052953822118a2c2b Mon Sep 17 00:00:00 2001 From: Nguyen Anh Tu Date: Wed, 15 Sep 2021 15:10:05 +0700 Subject: [PATCH] =?UTF-8?q?X=C3=B3a=20cache=20khi=20ch=E1=BB=89nh=20s?= =?UTF-8?q?=E1=BB=ADa/x=C3=B3a=20ch=E1=BB=A7=20=C4=91=E1=BB=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/faq/admin/cat.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/faq/admin/cat.php b/modules/faq/admin/cat.php index 9827b40..e38f2cf 100644 --- a/modules/faq/admin/cat.php +++ b/modules/faq/admin/cat.php @@ -240,7 +240,7 @@ if ($array['parentid'] != $row['parentid']) { nv_FixWeightCat($row['parentid']); } - + $nv_Cache->delMod($module_name); header('Location: ' . NV_BASE_ADMINURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=cat'); exit(); } @@ -337,6 +337,7 @@ $db->query($sql); nv_FixWeightCat($parentid); + $nv_Cache->delMod($module_name); exit('OK'); } @@ -375,6 +376,7 @@ } $sql = 'UPDATE ' . NV_PREFIXLANG . '_' . $module_data . '_categories SET weight=' . $new . ' WHERE id=' . $catid; $db->query($sql); + $nv_Cache->delMod($module_name); exit('OK'); } @@ -402,6 +404,7 @@ $sql = 'UPDATE ' . NV_PREFIXLANG . '_' . $module_data . '_categories SET status=' . $status . ' WHERE id=' . $catid; $db->query($sql); + $nv_Cache->delMod($module_name); exit('OK'); }