Optimise Service model

This commit is contained in:
2024-07-07 15:02:02 +10:00
parent b4f3db04fc
commit 0d9dbafcf1
10 changed files with 153 additions and 242 deletions

View File

@@ -1,17 +0,0 @@
<?php
/**
* Set defaults of QueryCacheable
*/
namespace App\Traits;
use Rennokki\QueryCache\Traits\QueryCacheable;
trait QueryCacheableConfig
{
use QueryCacheable;
public $cacheFor = 3600*6; // cache time, in seconds
protected static $flushCacheOnUpdate = TRUE;
public $cacheDriver = 'memcached';
}