diff --git a/inc/functions.php b/inc/functions.php index 3d7ae1b7..9153a279 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -657,8 +657,8 @@ function listBoards($just_uri = false) { $just_uri ? $cache_name = 'all_boards_uri' : $cache_name = 'all_boards'; - //if ($config['cache']['enabled'] && ($boards = cache::get($cache_name))) - //return $boards; + if ($config['cache']['enabled'] && ($boards = cache::get($cache_name))) + return $boards; if (!$just_uri) { $query = query("SELECT ``boards``.`uri` uri, ``boards``.`title` title, ``boards``.`subtitle` subtitle, ``board_create``.`time` time FROM ``boards`` LEFT JOIN ``board_create`` ON ``boards``.`uri` = ``board_create``.`uri` ORDER BY ``boards``.`uri`") or error(db_error());