update fix deadcode, security
This commit is contained in:
@@ -24,20 +24,6 @@ abstract class BaseCachedRepository extends BaseRepository
|
||||
return $this->cache->remember($key, fn () => parent::find($id), CacheServiceInterface::TTL_LONG);
|
||||
}
|
||||
|
||||
public function getAll()
|
||||
{
|
||||
$key = CacheKey::build($this->getModuleName(), 'all');
|
||||
|
||||
return $this->cache->remember($key, fn () => parent::getAll(), CacheServiceInterface::TTL_LONG);
|
||||
}
|
||||
|
||||
public function getCount()
|
||||
{
|
||||
$key = CacheKey::build($this->getModuleName(), 'count');
|
||||
|
||||
return $this->cache->remember($key, fn () => parent::getCount(), CacheServiceInterface::TTL_LONG);
|
||||
}
|
||||
|
||||
public function create($data = [])
|
||||
{
|
||||
$result = parent::create($data);
|
||||
|
||||
Reference in New Issue
Block a user