Skip to content

Commit

Permalink
Xóa cache khi chỉnh sửa/xóa chủ đề
Browse files Browse the repository at this point in the history
  • Loading branch information
anhtunguyen committed Sep 15, 2021
1 parent d12eae6 commit 7d3ee62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/faq/admin/cat.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -337,6 +337,7 @@
$db->query($sql);

nv_FixWeightCat($parentid);
$nv_Cache->delMod($module_name);

exit('OK');
}
Expand Down Expand Up @@ -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');
}

Expand Down Expand Up @@ -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');
}

Expand Down

0 comments on commit 7d3ee62

Please sign in to comment.