Clear ncenterlite cache data after deleting old notifications

This commit is contained in:
Kijin Sung 2018-01-17 13:14:53 +09:00
parent c9d3645f10
commit 0dedc76107

View file

@ -22,6 +22,9 @@ $output = executeQuery('ncenterlite.deleteNotifyAll', $args);
if ($output->toBool())
{
echo "Successfully deleted all notifications older than $days days.\n";
$delete_obj = (object)array('regdate' => time());
Rhymix\Framework\Cache::clearGroup('ncenterlite');
Rhymix\Framework\Storage::writePHPData(\RX_BASEDIR . 'files/cache/ncenterlite/new_notify/delete_date.php', $delete_obj);
}
else
{