forked from friendica/friendica-addons
Merge pull request #724 from MrPetovan/bug/mastodoncustomemojis-reduce-cache-ttl
[mastodoncustomemojis] Reduce cache TTL to prevent raw emojis display
This commit is contained in:
commit
914b40f32e
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ function mastodoncustomemojis_get_custom_emojis_for_author($author_link)
|
||||||
if (empty($return) || Config::get('system', 'ignore_cache')) {
|
if (empty($return) || Config::get('system', 'ignore_cache')) {
|
||||||
$return = mastodoncustomemojis_fetch_custom_emojis_for_url($api_base_url);
|
$return = mastodoncustomemojis_fetch_custom_emojis_for_url($api_base_url);
|
||||||
|
|
||||||
Cache::set($cache_key, $return, empty($return['texts']) ? Cache::HALF_HOUR : Cache::WEEK);
|
Cache::set($cache_key, $return, empty($return['texts']) ? Cache::QUARTER_HOUR : Cache::HOUR);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $return;
|
return $return;
|
||||||
|
|
Loading…
Reference in a new issue