Fix incorrect caching of error page

This commit is contained in:
Giuseppe Criscione 2019-04-20 20:19:12 +02:00
parent 61ebd00ee1
commit c2f1718bde

View File

@ -172,7 +172,7 @@ class Formwork
$data = $this->site->currentPage()->render();
if ($this->option('cache.enabled') && $resource->get('cacheable')) {
if ($this->option('cache.enabled') && $this->site->currentPage()->cacheable()) {
$this->cache->save($this->cacheKey, $data);
}
}