mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 01:43:42 +00:00
Hourly cache for the curweather addon
This commit is contained in:
parent
d9a44c9fe7
commit
2f2696c336
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue