|
@@ -41,7 +41,7 @@ class ActivityCache
|
|
*/
|
|
*/
|
|
public static function getActivityPv($activityId, $date): int
|
|
public static function getActivityPv($activityId, $date): int
|
|
{
|
|
{
|
|
- $cacheKey = Utils::getCacheKey('activity.statPv', [$activityId, $date]);
|
|
|
|
|
|
+ $cacheKey = Utils::getCacheKey('activity.statsPv', [$activityId, $date]);
|
|
$exist = Redis::exists($cacheKey);
|
|
$exist = Redis::exists($cacheKey);
|
|
if (!$exist) {
|
|
if (!$exist) {
|
|
return 0;
|
|
return 0;
|
|
@@ -58,7 +58,7 @@ class ActivityCache
|
|
*/
|
|
*/
|
|
public static function getActivityUv($activityId, $date): int
|
|
public static function getActivityUv($activityId, $date): int
|
|
{
|
|
{
|
|
- $cacheKey = Utils::getCacheKey('activity.statUv', [$activityId, $date]);
|
|
|
|
|
|
+ $cacheKey = Utils::getCacheKey('activity.statsUv', [$activityId, $date]);
|
|
$exist = Redis::exists($cacheKey);
|
|
$exist = Redis::exists($cacheKey);
|
|
if (!$exist) {
|
|
if (!$exist) {
|
|
return 0;
|
|
return 0;
|