wfConfig SHOW TABLES
-
I couldn’t find a current wordfence repo, or a place to submit patches or PRs.
In ‘wordfence/lib/wfConfig.php’, on line 186, there is a line that has a query:
"SHOW TABLES LIKE '%s'", $table
Since WordPress happily makes 10 tables per blog on a multisite install, this can end up chewing up a lot of resources. If it’s changed to an equal instead of a like, it’s much less resource intensive, something like:
"SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = '%s'", $table
…Uly
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wfConfig SHOW TABLES’ is closed to new replies.