1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 19:34:04 +00:00

Enable caching in initialization mw

This commit is contained in:
Samuel Štancl 2020-05-22 12:34:25 +02:00
parent d7c04d304d
commit 800e8d5a56
7 changed files with 116 additions and 3 deletions

View file

@ -13,6 +13,18 @@ use Stancl\Tenancy\Tenancy;
class InitializeTenancyByPath extends IdentificationMiddleware
{
/** @var callable|null */
public static $onFail;
/** @var bool */
public static $shouldCache = false;
/** @var int */
public static $cacheTTL = 3600; // seconds
/** @var string|null */
public static $cacheStore = null; // default
/** @var Tenancy */
protected $tenancy;