diff --git a/src/Illuminate/Cache/Repository.php b/src/Illuminate/Cache/Repository.php index 469e075feb4a..ab219c308efc 100755 --- a/src/Illuminate/Cache/Repository.php +++ b/src/Illuminate/Cache/Repository.php @@ -548,7 +548,7 @@ protected function getSeconds($ttl) $duration = $this->parseDateInterval($ttl); if ($duration instanceof DateTimeInterface) { - $duration = Carbon::now()->diffInRealSeconds($duration, false); + $duration = Carbon::now()->diffInSeconds($duration, false); } return (int) ($duration > 0 ? $duration : 0);