Change cache key for filter-users matches
This commit is contained in:
parent
ffdbab1f79
commit
0dac8435dd
|
@ -163,7 +163,7 @@ if (isset($_GET['profile']) && trim($_GET['profile']) != '')
|
||||||
$count_matches = 0;
|
$count_matches = 0;
|
||||||
$enable_caching = false;
|
$enable_caching = false;
|
||||||
$match_cache_exists = true;
|
$match_cache_exists = true;
|
||||||
$match_ckey = _cachekey_construct('matches_note', $filter_key, $qt);
|
$match_ckey = _cachekey_construct('matches_note', $filter_key, $qt.json_encode($q));
|
||||||
$match_data = [];
|
$match_data = [];
|
||||||
if (content_cache__exists($match_ckey) !== false)
|
if (content_cache__exists($match_ckey) !== false)
|
||||||
$match_data = content_cache__get($match_ckey);
|
$match_data = content_cache__get($match_ckey);
|
||||||
|
@ -236,7 +236,7 @@ if (isset($_GET['profile']) && trim($_GET['profile']) != '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($enable_caching && !$match_cache_exists)
|
if ($enable_caching && !$match_cache_exists)
|
||||||
content_cache__put($match_ckey, 'ondemand,300', $match_data);
|
content_cache__put($match_ckey, 'ondemand,3600', $match_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
$config = instance_config('mastodon');
|
$config = instance_config('mastodon');
|
||||||
|
|
Loading…
Reference in New Issue