[mastodoncustomemojis] Reduce cache TTL to prevent raw emojis display

pull/724/head
Hypolite Petovan 2018-08-30 01:24:03 -04:00
parent b0fdc767a1
commit 3d828f1ae4
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ function mastodoncustomemojis_get_custom_emojis_for_author($author_link)
if (empty($return) || Config::get('system', 'ignore_cache')) {
$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;