diff options
| author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-01-20 05:12:38 +0000 |
|---|---|---|
| committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-01-20 05:12:38 +0000 |
| commit | 458b9b50ec8d835b4c5f72823d4815a9cee6d706 (patch) | |
| tree | ab0ea84c5e34cb6b5fa61b736e89722a92395c16 /phpBB/includes/functions.php | |
| parent | b2721cca0c82400efbf23abca1cbe260d4ea0eea (diff) | |
| download | forums-458b9b50ec8d835b4c5f72823d4815a9cee6d706.tar forums-458b9b50ec8d835b4c5f72823d4815a9cee6d706.tar.gz forums-458b9b50ec8d835b4c5f72823d4815a9cee6d706.tar.bz2 forums-458b9b50ec8d835b4c5f72823d4815a9cee6d706.tar.xz forums-458b9b50ec8d835b4c5f72823d4815a9cee6d706.zip | |
Un-b0rked ACL options caching, small general fixes
git-svn-id: file:///svn/phpbb/trunk@3338 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index aa1af28270..496e327e87 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -50,7 +50,7 @@ function set_config($config_name, $config_value) } $config[$config_name] = $config_value; - $cache->save('config', $config); + $cache->put('config', $config); } @@ -214,9 +214,7 @@ function make_jumpbox($action, $forum_id = false) $sql = 'SELECT forum_id, forum_name, forum_postable, left_id, right_id FROM ' . FORUMS_TABLE . ' ORDER BY left_id ASC'; - - // Cache the forums list for 60 seconds - $result = $db->sql_query($sql, 60); + $result = $db->sql_query($sql); $right = $cat_right = 0; $padding = $forum_list = $holding = ''; @@ -265,7 +263,7 @@ function make_jumpbox($action, $forum_id = false) } $nav_links['chapter forum'][$row['forum_id']] = array ( - 'url' => ($row['forum_status'] == ITEM_CATEGORY) ? "index.$phpEx$SIDc=" : "viewforum.$phpEx$SID&f=" . $row['forum_id'], + 'url' => "viewforum.$phpEx$SID&f=" . $row['forum_id'], 'title' => $row['forum_name'] ); } @@ -676,7 +674,7 @@ function obtain_word_list(&$orig_word, &$replacement_word) global $db, $cache; if ($cache->exists('word_censors')) { - $words = $cache->load('word_censors'); + $words = $cache->get('word_censors'); $orig_word = $words['orig']; $replacement_word = $words['replacement']; } @@ -693,7 +691,7 @@ function obtain_word_list(&$orig_word, &$replacement_word) } $words = array('orig' => $orig_word, 'replacement' => $replacement_word); - $cache->save('word_censors', $words); + $cache->put('word_censors', $words); } return true; |
