mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 07:56:07 +01:00
Update CompiledFile.php (#1693)
const CACHE_DIR already defined with trailing slash
```php
define('CACHE_DIR', ROOT_DIR . 'cache/');
```
This commit is contained in:
@@ -27,7 +27,7 @@ trait CompiledFile
|
||||
// If nothing has been loaded, attempt to get pre-compiled version of the file first.
|
||||
if ($var === null && $this->raw === null && $this->content === null) {
|
||||
$key = md5($this->filename);
|
||||
$file = PhpFile::instance(CACHE_DIR . DS . "compiled/files/{$key}{$this->extension}.php");
|
||||
$file = PhpFile::instance(CACHE_DIR . "compiled/files/{$key}{$this->extension}.php");
|
||||
|
||||
$modified = $this->modified();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user