Title: multiple database requests for keyExpDays
Last modified: August 19, 2025

---

# multiple database requests for keyExpDays

 *  Resolved [jp1977](https://wordpress.org/support/users/jp1977/)
 * (@jp1977)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/multiple-database-requests-for-keyexpdays/)
 * Our hosting service has reported that our site is making multiple requests for
   the following and has restricted the site because of this:
 * `SELECT name, val, autoload FROM wp_wfconfig WHERE name = 'keyExpDays'`
 * this query returns no results, should it?
 * I have checked and a key has been added for WF

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/multiple-database-requests-for-keyexpdays/#post-18606988)
 * Hi [@jp1977](https://wordpress.org/support/users/jp1977/), thanks for getting
   in touch.
 * We are always working to ensure the plugin runs as efficiently as possible, especially
   during a high rate of activity (such as a scan). Most of our values are autoloaded
   in a single query, but if a value doesn’t exist, it can cause a separate query
   like the one shown above.
 * It seems unusual for a host to pick out _that_ query as a problem though. If 
   your host can provide any other details about why this was a significant problem,
   it would be helpful. I could speculate that your site had a huge traffic spike,
   but would expect this to be one of many queries from Wordfence and other plugins
   during a time like that.
 * Many thanks,
   Peter.
 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/multiple-database-requests-for-keyexpdays/#post-18616017)
 * Hi [@jp1977](https://wordpress.org/support/users/jp1977/),
 * Did you hear any more from your host about the logs that led them to this conclusion?
   It would help us to identify if there are instances when this (or similar) queries
   could be cut down.
 * Thanks again,
   Peter.
 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/multiple-database-requests-for-keyexpdays/#post-18626352)
 * We have scheduled an update to avoid extra `keyExpDays` queries in an upcoming
   plugin release.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘multiple database requests for keyExpDays’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * Last activity: [9 months, 1 week ago](https://wordpress.org/support/topic/multiple-database-requests-for-keyexpdays/#post-18626352)
 * Status: resolved