Skip to content
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

[10.x] Update routes and events "is cached" check to is_file #49680

Closed
wants to merge 1 commit into from

Conversation

serpentblade
Copy link
Contributor

The method that checks for a cached configuration file uses is_file (and was changed a few years back from file_exists during a mass update). These methods weren't updated as they weren't directly calling file_exists, but under the hood that's effectively all this method does after looking up the Filesystem service.

This brings these methods in line with other usages of is_file and trims an unnecessary service lookup from the call stack.

The method that checks for a cached configuration file uses is_file (and was changed a few years back from file_exists during a mass update).  These methods weren't updated as they weren't directly calling file_exists, but under the hood that's effectively all this method does after looking up the Filesystem service.

This brings these methods in line with other usages of is_file and trims an unnecessary service lookup from the call stack.
@taylorotwell
Copy link
Member

Going to leave as is in case the container binding has been changed in existing apps.

@serpentblade
Copy link
Contributor Author

Fair enough. How about for 11.x?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants