Description
The wordfence WordPress plugin severely degrades WP-CLI performance on Docker. Enabling it results in WP-CLI commands taking approximately 10-20 times longer.
This does not happen on staging or production. It may be due to the fact that the current docker configuration has WordPress and WP-CLI in different containers.
Reproduction
- Activate
wordfence plugin
./wpcli.sh plugin activate wordfence
- List plugins
time ./wpcli.sh plugin list
real 0m10.783s
user 0m0.078s
sys 0m0.037s
- Deactivate
wordfence plugin
./wpcli.sh plugin deactivate wordfence
- List plugins
time ./wpcli.sh plugin list
real 0m0.385s
user 0m0.077s
sys 0m0.038s
Expectation
Local development should be performant.
Investigate to determine if the wordfence WordPress plugin can be configured so that it does not negatively impact WP-CLI performance within a docker container. Alternately, investigate moving the Docker configuration to a single container model for WordPress and WP-CLI.
Additional context
Resolution
Description
The
wordfenceWordPress plugin severely degrades WP-CLI performance on Docker. Enabling it results in WP-CLI commands taking approximately 10-20 times longer.This does not happen on staging or production. It may be due to the fact that the current docker configuration has WordPress and WP-CLI in different containers.
Reproduction
wordfenceplugintime ./wpcli.sh plugin listwordfenceplugintime ./wpcli.sh plugin listExpectation
Local development should be performant.
Investigate to determine if the
wordfenceWordPress plugin can be configured so that it does not negatively impact WP-CLI performance within a docker container. Alternately, investigate moving the Docker configuration to a single container model for WordPress and WP-CLI.Additional context
Resolution