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

Improves the SwitchRouteCacheTask #351

Merged
merged 7 commits into from
Mar 30, 2022
Merged

Improves the SwitchRouteCacheTask #351

merged 7 commits into from
Mar 30, 2022

Conversation

masterix21
Copy link
Collaborator

The PR fixes a bug when the package is running in a console environment (tinker too) or unit tests and introduces the configurable ability to create only one routes cache file instead of a file for each tenant.

@masterix21 masterix21 changed the title Fix cached routes Fix cached routes task using console or tests, and add only one cached routes file Mar 30, 2022
@masterix21 masterix21 changed the title Fix cached routes task using console or tests, and add only one cached routes file Improves the SwitchRouteCacheTask Mar 30, 2022
@masterix21
Copy link
Collaborator Author

@freekmurze, take a look here: fixes a bug and adds the ability to use the shared route cache file for all tenants.

The shared route cache is excellent to help the users with landlord routes (for example: routes/landlord.php) and tenants routes (for example, routes/tenants.php). I had the issue in a project of mine, solved overriding the package task, but I'm sure that will help many other users.

@freekmurze
Copy link
Member

Looks good, nice work 👍

Could you make sure that the tests pass?

@masterix21
Copy link
Collaborator Author

Already fixed with another PR: the issue was in the migration tests.

@masterix21 masterix21 merged commit da98ea1 into spatie:main Mar 30, 2022
@masterix21 masterix21 deleted the fix-cached-routes branch March 30, 2022 14:18
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