mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-25 02:02:57 +01:00
Fix incorrect caching of error page
This commit is contained in:
parent
61ebd00ee1
commit
c2f1718bde
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user