WordPress Developer Ukraine, Kyiv
MySQL Triggers for WordPress Database Audit Logging

MySQL Triggers for WordPress Database Audit Logging

MySQL triggers as an audit log for WordPress options Some changes in a WordPress database come from nowhere: the admin email is suddenly different, users_can_register is on, a plugin appears in active_plugins. A logging plugin records what happens through WordPress, but not what a script, a database tool or an attacker with database access changes…
Optimize WordPress Database Tables with ANALYZE, OPTIMIZE, and Slow Query Log

Optimize WordPress Database Tables with ANALYZE, OPTIMIZE, and Slow Quer ...

Optimize WordPress database tables: cleanup, ANALYZE and OPTIMIZE Over the years a WordPress database collects revisions, expired transients, trashed posts and orphaned meta rows, and the large tables (wp_posts, wp_postmeta, wp_options) get fragmented. The MySQL optimizer also works with index statistics that can be outdated after big imports or deletions. Three commands help: ANALYZE TABLE…