Force default timezone to UTC; move helpers.php
This commit is contained in:
@@ -224,14 +224,14 @@ trait CacheableRepository
|
||||
public function paginate($limit = null, $columns = ['*'], $method='paginate')
|
||||
{
|
||||
if (!$this->allowedCache('paginate') || $this->isSkippedCache()) {
|
||||
return parent::paginate($limit, $columns);
|
||||
return parent::paginate($limit, $columns, $method);
|
||||
}
|
||||
|
||||
$key = $this->getCacheKey('paginate', func_get_args());
|
||||
|
||||
$minutes = $this->getCacheMinutes();
|
||||
$value = $this->getCacheRepository()->remember($key, $minutes, function () use ($limit, $columns) {
|
||||
return parent::paginate($limit, $columns);
|
||||
$value = $this->getCacheRepository()->remember($key, $minutes, function () use ($limit, $columns, $method) {
|
||||
return parent::paginate($limit, $columns, $method);
|
||||
});
|
||||
|
||||
$this->resetModel();
|
||||
|
||||
Reference in New Issue
Block a user