mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-20 16:50:41 -04:00
add observer to the permissions query. this should not be necessary but it makes it clear why it should be included in the cache key
(cherry picked from commit 57e32a7912)
This commit is contained in:
@@ -68,12 +68,11 @@ function categories_widget($baseurl,$selected = '') {
|
|||||||
|
|
||||||
require_once('include/security.php');
|
require_once('include/security.php');
|
||||||
|
|
||||||
$sql_extra = item_permissions_sql(App::$profile['profile_uid']);
|
$observer = get_observer_hash();
|
||||||
|
$sql_extra = item_permissions_sql(App::$profile['profile_uid'], $observer);
|
||||||
|
|
||||||
$item_normal = item_normal();
|
$item_normal = item_normal();
|
||||||
|
|
||||||
$observer = get_observer_hash();
|
|
||||||
|
|
||||||
$key = __FUNCTION__ . '_' . md5(App::$profile['profile_uid'] . $observer);
|
$key = __FUNCTION__ . '_' . md5(App::$profile['profile_uid'] . $observer);
|
||||||
|
|
||||||
$content = Cache::get($key, '5 MINUTE');
|
$content = Cache::get($key, '5 MINUTE');
|
||||||
|
|||||||
Reference in New Issue
Block a user