A conversion to Innodb tool might be more effective than the db optimise option.
xyzulu agreed.. like litespeed plugin has this already..
as per my knowledge innodb doesn't require optimization as such, correct me if I'm wrong.. cPFence
cPFence is it safe to run on heavy woocommerce sites? and is this like cleaning drafts and transients etc.?
pratik_asabe
Yes, it’s generally safe to run optimize, whether from WP CLI or phpMyAdmin. It doesn’t delete drafts, transients, or any data—it simply optimizes the database tables. That said, it’s always a good idea to have a backup ready and run the optimization during off-peak hours, especially for large WooCommerce sites.
cPFence I have a suggestion, instead running bulk commands, it'd be nice to be able to use for on demand sites for example,
cpfence --bulk-optimize-wp-databases
instead
cpfence --optimize-wp-database --s example.com
That’s already possible from the Admin UI—all 46 WP-AutoShield tools can be run on all sites or just specific ones as you wish. Makes it super easy and flexible.
cPFence This morning I got the first automatic mail from the database malware scan. For just 10 WordPress sites it reports about 6000 lines as suspicious.
So thanks for your effort here, but I disabled the database scan due to the number of false positives/ irrelevant checks.
mbe81
Thank you for the feedback. We're aware of these false positives, and a fix is scheduled to be released later today. This update will refine the scan to focus solely on pure malware detections. Appreciate your patience.
mbe81 rdbf
Can you please try a manual DB scan with the latest 3.3.33 version? You can use cpfence --bulk-scan-wp-databases or run it from the UI. Let us know how it goes. If you still notice any false alarms, please attach the log file to a support ticket.
cpfence --bulk-scan-wp-databases
We’ve tested this version on busy shared hosting servers, and it successfully detected all our known malware DB injection patterns while keeping false positives to a minimum.
Version 3.3.33 (16th February 2025)
Added
/opt/cpfence/user-config/cpfmrtp/whitelisted_databases.txt
Improved
cPFence
Scan completed successfully. No suspicious database entries were detected.
Much better! Thanks!
On all servers, so that's good!