-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
[RFC] Review mergeFiles logic in case of missing file #874
Comments
Good observation. I think it would be appropriate to not re-merge the files every request as you stated, and an error should be logged when a file is missing. |
I agree. |
If this is an issue in OpenMage please create a PR for being tested. Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi guys,
given this line in the
Mage_Core_Helper_Data::mergeFiles()
method:magento-lts/app/code/core/Mage/Core/Helper/Data.php
Line 752 in 143b03d
In case one of the source file doesn't exists on filesystem the merge is performed repeatedly at every request.
I agree that this should never happen because if a file is not on filesystem it should not be used by the application.
But if by mistake a CSS is removed from filesystem and the developer forgot to remove the related layout XML rule, we have other CSS files merged again and again at every request.
What do you think? It's worth to find a better way to handle merging in case of missing files or simply we don't want to "support" this kind of mistake.
The text was updated successfully, but these errors were encountered: