-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cached configuration does not work #885
Comments
I've taken a look into this today, and it might be more difficult than first thought. There's two issues at play: Config repositoryOur Config Repository class is based on the old method that pre-Laravel 5 used, in that config files are loaded as they are needed (ie. the I found when I fixed the command, all the Mutiple environmentsWinter allows multiple environments to be defined, each with their own config, by allowing a subdirectory inside the This means that if we were to adopt a loading method similar to Laravel 5+, and load all config files before caching, we'd have to generate multiple caches, one for each environment possible. Ultimately, I'll have to do some digging on how much the configuration cache actually helps with performance with Winter. If we're talking very minimal performance benefit, I'm inclined to just remove |
@saturnino are you interested in playing around with it and seeing what the performance difference is if we were to go ahead with these changes? |
Hi. Just migrate from october to Winter :), and I sent 4hrs to figure out how to make it work. But ok it's a bug. |
@gregoryloichot could you test on October how much of a performance difference |
This comment was marked as off-topic.
This comment was marked as off-topic.
This issue will be closed and archived in 3 days, as there has been no activity in this issue for the last 6 months. |
Winter CMS Build
dev-develop
PHP Version
8.1
Database engine
MySQL/MariaDB
Plugins installed
Winter.Demo
Issue description
After using the cache, the configuration does not work, the error prevents the use of the configuration cache.
Winter CMS 1.2.1 (dev-develop too)
PHP 8.1.15
Steps to replicate
php artisan config:cache or artisan:optimize
Workaround
To restore configuration php artisan config:clear configuration or delete the /storage/framework/config.php file
The text was updated successfully, but these errors were encountered: