Upgrade to Laravel 11, begining of enabling network join functionality, removed QueryCacheable
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user