Hi!
First time here - Love the CMS
I have a a question; Why did you choose not to put the /assets and the /images directories into the /cache directory?
I am having some issues with internal users fiddling with the those files :P I had rewrote some of the base code to where the cache directory is hidden and that works as expected. Now the issue lies with the assets and the images directories so I opt to move them into the .cache directory. I managed to update the base code and the generated files are dumped into the correct directories and the links are correctly printed in the outputted html. The problem is that the browser throws a 500 for the generated assets and image files even though the printed href-link is correct and the files exist (No logs are printed out - Grav or server side)..
Printed HTML example for css:
<link href=".cache/assets/2a8c975c7b24f0a150a9b9cec449e8a0.css?634338cf" type="text/css" rel="stylesheet">
This file exists in the ~/.cache/assets/[file-hash]
Below is what I had changed (as an example for the assets). I am not concerned a bout updates from Grav since we decided to branch off the current release for our internal site.
Any help would be greatly appreciated!
/system/defines.php:
17: define('ASSETS_DIR', ROOT_DIR . '.cache/assets/');
/system/src/Grav/Common/Assets.php:
459: $relative_path = "{$this->base_url}.cache/" . basename(ASSETS_DIR) . "/{$file}";
/system/src/Grav/Common/Cache.php:
52: '.cache/assets/',
58: '.cache/assets/'
62: '.cache/assets/'
Again if you have any ideas where to look, it would be appreciated.
Thnx
-jason