Skip to content
This repository was archived by the owner on Feb 18, 2019. It is now read-only.

Commit 0d3fc3d

Browse files
committed
[CACHE] Add $defaultLifetime to cache.
1 parent 78eab7c commit 0d3fc3d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

WhereIsMyTeacherBot/Service/TeacherService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ class TeacherService
2121
*/
2222
public function __construct()
2323
{
24-
$this->cache = new FilesystemCache();
24+
$this->cache = new FilesystemCache('teacher-schedule',
25+
Carbon::SECONDS_PER_MINUTE * Carbon::MINUTES_PER_HOUR * Carbon::HOURS_PER_DAY * Carbon::DAYS_PER_WEEK
26+
);
2527
}
2628

2729
/**

0 commit comments

Comments
 (0)