mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Merge pull request #554 from torrentpier/removed-deprecated-sql-cache
Removed deprecated SQL_CACHE
This commit is contained in:
commit
307cab28b3
2 changed files with 2 additions and 3 deletions
|
@ -102,8 +102,7 @@ $topics_join_sql .= ($only_new == ONLY_NEW_TOPICS) ? "
|
||||||
$join_t_type = ($only_new == ONLY_NEW_TOPICS) ? 'INNER JOIN' : 'LEFT JOIN';
|
$join_t_type = ($only_new == ONLY_NEW_TOPICS) ? 'INNER JOIN' : 'LEFT JOIN';
|
||||||
|
|
||||||
$sql = "
|
$sql = "
|
||||||
SELECT SQL_CACHE
|
SELECT f.cat_id, f.forum_id, f.forum_status, f.forum_parent, f.show_on_index,
|
||||||
f.cat_id, f.forum_id, f.forum_status, f.forum_parent, f.show_on_index,
|
|
||||||
p.post_id AS last_post_id, p.post_time AS last_post_time,
|
p.post_id AS last_post_id, p.post_time AS last_post_time,
|
||||||
t.topic_id AS last_topic_id, t.topic_title AS last_topic_title,
|
t.topic_id AS last_topic_id, t.topic_title AS last_topic_title,
|
||||||
u.user_id AS last_post_user_id, u.user_rank AS last_post_user_rank,
|
u.user_id AS last_post_user_id, u.user_rank AS last_post_user_rank,
|
||||||
|
|
|
@ -338,7 +338,7 @@ function auth($type, $forum_id, $ug_data, array $f_access = array(), $group_perm
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!$is_guest && !$is_admin) {
|
if (!$is_guest && !$is_admin) {
|
||||||
$sql = "SELECT SQL_CACHE aa.forum_id, aa.forum_perm
|
$sql = "SELECT aa.forum_id, aa.forum_perm
|
||||||
FROM " . BB_AUTH_ACCESS_SNAP . " aa
|
FROM " . BB_AUTH_ACCESS_SNAP . " aa
|
||||||
WHERE aa.user_id = " . (int)$ug_data['user_id'] . "
|
WHERE aa.user_id = " . (int)$ug_data['user_id'] . "
|
||||||
$forum_match_sql";
|
$forum_match_sql";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue