From ef8ef2c0b43f73c09a1601739ae02c74628aa680 Mon Sep 17 00:00:00 2001 From: czaks Date: Mon, 6 Apr 2015 23:58:23 +0200 Subject: [PATCH] infinity/smart-build: rebuild config cache when flags are modified --- inc/8chan-mod-pages.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inc/8chan-mod-pages.php b/inc/8chan-mod-pages.php index d3a207bd..9d74b8bf 100644 --- a/inc/8chan-mod-pages.php +++ b/inc/8chan-mod-pages.php @@ -319,6 +319,11 @@ \$config['user_flags'] = unserialize(file_get_contents('$b/flags.ser')); FLAGS; + if ($config['cache']['enabled']) { + cache::delete('config_' . $b); + cache::delete('events_' . $b); + } + file_write($b.'/flags.php', $flags); }