clrghouz/app/Traits/QueryCacheableConfig.php

17 lines
305 B
PHP
Raw Normal View History

2022-01-01 05:59:35 +00:00
<?php
/**
* Set defaults of QueryCacheable
*/
namespace App\Traits;
use Rennokki\QueryCache\Traits\QueryCacheable;
trait QueryCacheableConfig
{
use QueryCacheable;
public $cacheFor = 900; // cache time, in seconds
protected static $flushCacheOnUpdate = TRUE;
public $cacheDriver = 'memcached';
}