Property | Type | Description | |
---|---|---|---|
$cacheFile | Bolt\Filesystem\Handler\FileInterface | ||
$expired | boolean |
Method | Description | |
---|---|---|
__construct ( Bolt\Filesystem\Handler\FileInterface $cacheFile ) | Constructor. | |
isCheckRequired ( ) : boolean | Check if we have determined that we need to do a database check. | |
setCheckExpiry ( ) | Set our state as valid by writing the current date/time to the app/cache/dbcheck.ts file. | |
setCheckRequired ( ) | Invalidate our database check by removing the timestamp file from cache. |
public __construct ( Bolt\Filesystem\Handler\FileInterface $cacheFile ) | ||
$cacheFile | Bolt\Filesystem\Handler\FileInterface |
public isCheckRequired ( ) : boolean | ||
return | boolean |
public setCheckExpiry ( ) |
public setCheckRequired ( ) |
protected FileInterface,Bolt\Filesystem\Handler $cacheFile | ||
return | Bolt\Filesystem\Handler\FileInterface |