Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/Flagsmith.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,18 @@ public function withSkipCache(bool $skipCache): self
return $this->with('skipCache', $skipCache);
}

/**
* Whether to use the Cache as a failover for server errors
*
* @param bool $useCacheAsFailover
*
* @return self
*/
public function withUseCacheAsFailover(bool $useCacheAsFailover): self
{
return $this->with('useCacheAsFailover', $useCacheAsFailover);
}

/**
* Get the environment model.
* @return EnvironmentModel
Expand Down