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

Implement --batch and --exclude options for opcache:compile:scripts command #129

Merged
merged 4 commits into from
Dec 5, 2019

Conversation

floodcode
Copy link
Contributor

Option --batch allows to compile all files at once (in single php file). It could help warming up opcache on servers with pm.max_requests setting (when project has big amount of files, php-fpm stops responding after compiling pm.max_requests - 1 files).

Option --exclude allows to exclude paths, opcache for which we don't want to compile. For example we don't want to compile opcache for vendor/ directory.

.gitignore Outdated Show resolved Hide resolved
Copy link
Owner

@gordalina gordalina left a comment

Choose a reason for hiding this comment

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

@floodcode
Copy link
Contributor Author

@gordalina Done!

@gordalina
Copy link
Owner

Fantastic, thank you for the contribution.
Really liked the aesthetic detail on indenting the code.

@gordalina gordalina merged commit 79eb590 into gordalina:master Dec 5, 2019
@gordalina
Copy link
Owner

Added in version 5.0.0. Check the changelog

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