forked from leftypol/leftypol
additional cache
This commit is contained in:
parent
9ba135ffcd
commit
3520a10f0d
2 changed files with 31 additions and 0 deletions
10
mod.php
10
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']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue