From 3520a10f0df5b3dd094d5f68d3ff5305b32d92aa Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 8 Oct 2011 17:46:48 +1100 Subject: additional cache --- mod.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mod.php') diff --git a/mod.php b/mod.php index 8ab39e68..6d8450c5 100644 --- a/mod.php +++ b/mod.php @@ -1415,6 +1415,11 @@ $query->bindValue(':id', $board['id'], PDO::PARAM_INT); $query->execute() or error(db_error($query)); + if($config['cache']['enabled']) { + cache::delete('board_' . $board['uri']); + cache::delete('all_boards'); + } + rebuildThemes('boards'); header('Location: ?/', true, $config['redirect_http']); @@ -1431,6 +1436,11 @@ $query->bindValue(':id', $board['id'], PDO::PARAM_INT); $query->execute() or error(db_error($query)); + if($config['cache']['enabled']) { + cache::delete('board_' . $board['uri']); + cache::delete('all_boards'); + } + rebuildThemes('boards'); openBoard($board['uri']); -- cgit v1.3