Skip to content

Experimental Opcache flag#1107

Open
dantleech wants to merge 6 commits intomasterfrom
opcache-flag
Open

Experimental Opcache flag#1107
dantleech wants to merge 6 commits intomasterfrom
opcache-flag

Conversation

@dantleech
Copy link
Copy Markdown
Member

@dantleech dantleech commented Sep 29, 2024

Add a flag/config option to enable opcache on the CLI: phpbench --php-opcache

  • Overrides the PHP config to opcache.enable_cli
  • Sets opcache.file_cache directory and opcache.file_cache_only (is "only" needed?)

TODO:

  • Current opcache "status" is misleading as it will be ✔️ when opcache.enable is true, but on CLI there is no opcache unless enable_cli is set.
  • allow opcache to be disabled as well as enabled

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.

1 participant