Skip to content

FOUR-32618 Command TENANT=<tenant-id> php artisan route:cache is not working - #8984

Open
julceslauhub wants to merge 1 commit into
feature/plugins-poc-4from
FOUR-32618
Open

FOUR-32618 Command TENANT=<tenant-id> php artisan route:cache is not working#8984
julceslauhub wants to merge 1 commit into
feature/plugins-poc-4from
FOUR-32618

Conversation

@julceslauhub

Copy link
Copy Markdown
Contributor

@julceslauhub
julceslauhub requested a review from nolanpro August 10, 2026 22:50
@processmaker-sonarqube

Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@nolanpro nolanpro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@julceslauhub I get that we can't use https://github.com/spatie/laravel-multitenancy/blob/main/src/Tasks/SwitchRouteCacheTask.php because we're saving it in tenant-specific storage, but could you integrate this part so it works in octane?

if (app()->routesAreCached() && $this->shouldReinitializeRouter()) {
            require app()->getCachedRoutesPath();
        }

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