From 3d828f1ae44911ee4e2a3b86b020cc835f5769aa Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 30 Aug 2018 01:24:03 -0400 Subject: [PATCH] [mastodoncustomemojis] Reduce cache TTL to prevent raw emojis display --- mastodoncustomemojis/mastodoncustomemojis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodoncustomemojis/mastodoncustomemojis.php b/mastodoncustomemojis/mastodoncustomemojis.php index 6ba96f11..1acd924a 100644 --- a/mastodoncustomemojis/mastodoncustomemojis.php +++ b/mastodoncustomemojis/mastodoncustomemojis.php @@ -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; -- 2.39.5