优化缓存策略,将缓存时间从10分钟延长至7天,减少API调用频率
@@ -7,7 +7,7 @@ $apiBaseUrl = 'https://um.com';
$token = '你的tocken';
$websiteId = '你的网站id';
$cacheFile = 'umami_cache.json';
$cacheTime = 600; // 缓存时间为10分钟(600秒)
$cacheTime = 604800; // 缓存时间为7天(604800秒)
// 获取当前时间戳(毫秒级)
$currentTimestamp = time() * 1000;
The note is not visible to the blocked user.