The wp_wfhoover table is part of Wordfence, a popular security plugin for WordPress. This table is used to clean up old data from other Wordfence tables.
If the table is too large, it may slow down the database.
SELECT table_name AS "Table",
ROUND(((data_length + index_length) / 1024 / 1024), 2) AS "Size (MB)"
FROM information_schema.TABLES
WHERE table_name = 'wp_wfhoover';
If it's several hundred MBs or GBs, it's safe to clean up.
Since wp_wfhoover is only for temporary data, you can safely truncate it.
mysqldump -u username -p database_name > backup.sql
TRUNCATE TABLE wp_wfhoover;
This clears the table but keeps its structure.
After clearing wp_wfhoover, optimize the database:
OPTIMIZE TABLE wp_wfhoover;
This helps reclaim unused space and improves performance.
if (function_exists('wfDBClean')) {
wfDBClean();
}
This forces Wordfence to remove old log data immediately.
| Issue | Fix |
|---|---|
| wp_wfhoover too large | Run TRUNCATE TABLE wp_wfhoover; |
| Database performance slow | Run OPTIMIZE TABLE wp_wfhoover; |
| Prevent table from growing | Enable auto-cleanup in Wordfence settings |
Now Wordfence runs efficiently without slowing your database!