diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-08 17:46:48 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-08 17:46:48 +1100 |
| commit | 3520a10f0df5b3dd094d5f68d3ff5305b32d92aa (patch) | |
| tree | e72e83469a3b1ebb4e6bbf66b9f837c369dd2126 /mod.php | |
| parent | 9ba135ffcd3046c9330ea23752e5749e543f1d74 (diff) | |
additional cache
Diffstat (limited to 'mod.php')
| -rw-r--r-- | mod.php | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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']); |
