From: Michael Vogel Date: Sun, 13 Sep 2015 06:30:40 +0000 (+0200) Subject: Hourly cache for the curweather addon X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2f2696c3366f9260f67589f955f2046197fb3a78;p=friendica-addons.git Hourly cache for the curweather addon --- diff --git a/curweather/curweather.php b/curweather/curweather.php index 59d7e378..e28cc2b3 100644 --- a/curweather/curweather.php +++ b/curweather/curweather.php @@ -57,7 +57,7 @@ function getWeather( $loc, $units='metric', $lang='en', $appid='', $cachetime=0) 'icon' => (string)$res->weather['icon'] ); set_pconfig(local_user(), 'curweather', 'last', $now->getTimestamp()); - Cache::set('curweather'.md5($url), serialize($r)); + Cache::set('curweather'.md5($url), serialize($r), CACHE_HOUR); return $r; }