1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-05 19:55:21 +02:00

Clear main news cache on adding new item

This commit is contained in:
e107steved 2007-06-07 20:43:33 +00:00
parent 8e25b97b1f
commit 23bf509271

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $
| $Revision: 1.6 $ | $Revision: 1.7 $
| $Date: 2007-02-07 21:22:09 $ | $Date: 2007-06-07 20:43:25 $
| $Author: e107steved $ | $Author: e107steved $
+---------------------------------------------------------------+ +---------------------------------------------------------------+
@ -150,6 +150,7 @@ if (isset($_POST['preview'])) {
if (isset($_POST['submit_news'])) { if (isset($_POST['submit_news'])) {
$newspost->submit_item($sub_action, $id); $newspost->submit_item($sub_action, $id);
$e107cache->clear("news.php");
$e107cache->clear("othernews"); $e107cache->clear("othernews");
$e107cache->clear("othernews2"); $e107cache->clear("othernews2");
$action = "main"; $action = "main";