]> git.mxchange.org Git - friendica-addons.git/commitdiff
[mastodoncustomemojis] Reduce cache TTL to prevent raw emojis display
authorHypolite Petovan <mrpetovan@gmail.com>
Thu, 30 Aug 2018 05:24:03 +0000 (01:24 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Thu, 30 Aug 2018 05:24:03 +0000 (01:24 -0400)
mastodoncustomemojis/mastodoncustomemojis.php

index 6ba96f115cb424b6d5060082b236eb1a49f11aba..1acd924afd73f017e7bb44a5bb781f64ace8e715 100644 (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;