Anticipate AppKernel creation so that cache clear locking is used effectively #31844
Open
2 of 8 tasks
Labels
8.1.x
Branch
BO
Category: Back Office
Developer Feature
Developer-oriented feature
Needs Specs
Status: issue needs to be specified
Refactoring
Type: Refactoring
Task
Type: neither a bug or a feature
Prerequisites
Describe the bug and add attachments
This issue is about improving/fixing the bugs we encountered while the Symfony cache is being cleared.
Here's a list of related issues (but there are probably others):
#28304
#30011
One strategy suggested was to check if the lock file was already blocked before the kernel is even started:
#31419
But it seemed weird that we had to do this for Symfony so in the meantime, an alternative solution was proposed in this PR: (also based on a lock file but custom to PrestaShop:
#31820
Expected solution (we're not sure it is valid, that's why it needs to be tested)
This solution is still not ideal because again we ignore the system from Symfony that is supposed to handle this, so a better solution should be searched in 8.1.x (if we find the time) or 9.0 if the changes are too impactful, here is the idea.
config.inc.php
they should be moved and handled by the Kernel itself via container pass or listenersconfig.inc.php
is also used by the front we can split the files intoconfig.inc.php
andadmin.config.inc.php
to reduce impactsThe text was updated successfully, but these errors were encountered: