Title: Optimize the plugin install check
Last modified: October 17, 2022

---

# Optimize the plugin install check

 *  Resolved [shaileshvishwakarma97](https://wordpress.org/support/users/shaileshvishwakarma97/)
 * (@shaileshvishwakarma97)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/optimize-the-plugin-install-check/)
 * Hi there,
 * Here are the details of the system.
    1. Version of the plugin. – 1.10.4 2. Your
   browser and operating system. – Chrome and Linux
 * We are using the WP Mail Logging plugin. Currently, we are trying to improve 
   the performance of our site. We used the Query Monitor plugin and found that 
   the WP Mail Logging plugin is executing the query _SHOW TABLES LIKE “wp\_wpml\
   _mails”_ in the file _plugins/wp-mail-logging/src/WPML\_InstallIndicator.php_
   at line _48_ each time the site loads. We found that the plugin is using the 
   caching code _wp\_cache\_get_ if the plugin is installed. If the plugin is not
   installed, it runs the query.
 * Why doesn’t the WP Mail Logging cache the data if the plugin is not installed?
   Can you take a look into it and try not to execute the query each time? Also,
   if you can increase the cache expiration time, it would be good.
 * Waiting for your reply.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Dake](https://wordpress.org/support/users/dakeg/)
 * (@dakeg)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/optimize-the-plugin-install-check/#post-16386768)
 * Hi [@shaileshvishwakarma97](https://wordpress.org/support/users/shaileshvishwakarma97/)
 * Thank you very much for bringing this to our attention and we apologize for the
   delay and any inconvenience caused by this issue.
 * Our developers have been informed about this issue and a GitHub issue has been
   created so that we can investigate this further.

Viewing 1 replies (of 1 total)

The topic ‘Optimize the plugin install check’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-logging/assets/icon-256x256.jpg?rev=2562296)
 * [WP Mail Logging](https://wordpress.org/plugins/wp-mail-logging/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-logging/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-logging/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-logging/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-logging/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-logging/reviews/)

## Tags

 * [performace](https://wordpress.org/support/topic-tag/performace/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dake](https://wordpress.org/support/users/dakeg/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/optimize-the-plugin-install-check/#post-16386768)
 * Status: resolved