瀏覽代碼

Update Profile model

Daniel Supernault 3 年之前
父節點
當前提交
32995064ec
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Profile.php

+ 2 - 2
app/Profile.php

@@ -65,7 +65,7 @@ class Profile extends Model
 
 
 	public function followingCount($short = false)
 	public function followingCount($short = false)
 	{
 	{
-		$count = Cache::remember('profile:following_count:v1:'.$this->id, now()->addMonths(1), function() {
+		$count = Cache::remember('profile:following_count:'.$this->id, now()->addMonths(1), function() {
 			if($this->domain == null && $this->user->settings->show_profile_following_count == false) {
 			if($this->domain == null && $this->user->settings->show_profile_following_count == false) {
 				return 0;
 				return 0;
 			}
 			}
@@ -82,7 +82,7 @@ class Profile extends Model
 
 
 	public function followerCount($short = false)
 	public function followerCount($short = false)
 	{
 	{
-		$count = Cache::remember('profile:follower_count:v1:'.$this->id, now()->addMonths(1), function() {
+		$count = Cache::remember('profile:follower_count:'.$this->id, now()->addMonths(1), function() {
 			if($this->domain == null && $this->user->settings->show_profile_follower_count == false) {
 			if($this->domain == null && $this->user->settings->show_profile_follower_count == false) {
 				return 0;
 				return 0;
 			}
 			}