mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-18 03:37:35 +01:00
undo no cache test
This commit is contained in:
parent
461a7f8a0b
commit
993df563db
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user