Upgrade to Laravel 11, begining of enabling network join functionality, removed QueryCacheable

This commit is contained in:
2024-04-26 16:18:40 +10:00
parent 6e376100a5
commit 79b180f453
16 changed files with 1086 additions and 1018 deletions

View File

@@ -6,7 +6,6 @@ use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Rennokki\QueryCache\Traits\QueryCacheable;
use App\Traits\{AreaSecurity,ScopeActive};
@@ -42,7 +41,7 @@ use App\Traits\{AreaSecurity,ScopeActive};
*/
class Echoarea extends Model
{
use SoftDeletes,ScopeActive,QueryCacheable,AreaSecurity;
use SoftDeletes,ScopeActive,AreaSecurity;
private const CACHE_TIME = 3600;
@@ -72,8 +71,7 @@ class Echoarea extends Model
public function messages_count(int $period=NULL): int
{
$eo = Echomail::cacheFor(self::CACHE_TIME)
->where('echoarea_id',$this->id);
$eo = Echomail::where('echoarea_id',$this->id);
$dt = Carbon::now()->startOfday();