mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -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
This commit is contained in:
@@ -67,12 +67,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