mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 19:38:49 +00:00
Move Global Functions - Part 3
- Replaced every CACHE_ definition
This commit is contained in:
parent
a8282d143e
commit
e67d810ecd
2 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ function getWeather($loc, $units = 'metric', $lang = 'en', $appid = '', $cacheti
|
|||
];
|
||||
|
||||
PConfig::set(local_user(), 'curweather', 'last', $now->getTimestamp());
|
||||
Cache::set('curweather'.md5($url), serialize($r), CACHE_HOUR);
|
||||
Cache::set('curweather'.md5($url), serialize($r), Cache::HOUR);
|
||||
|
||||
return $r;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue