public function BoostCache::index in Boost 8
Save page to local filesystem.
Parameters
string $response:
@todo, _toString if Symfony Response.
File
- src/
BoostCache.php, line 56 - Contains Drupal\boost\BoostCache
Class
- BoostCache
- The BoostCache class.
Namespace
Drupal\boostCode
public function index($response) {
if (!is_string($response)) {
$this->logger
->notice('Response for route @uri can not be cached.', array(
'@uri' => $this->route
->getPath(),
));
return;
}
$this->handler
->setCache($this->route
->getUri(), $response);
}