awesomemotive / wp-mail-logging

:envelope: Logs each email sent by WordPress.
49 stars 24 forks source link

Query executed on site load and cache expiration time adjustment. #150

Closed dakegordon-AM closed 1 year ago

dakegordon-AM commented 1 year ago

While using the Query Monitor plugin, WP Mail Logging 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 page loads.

WP Mail Logging is using the caching code "wp_cache_get" if it is installed. While it is not installed, it runs the aforementioned query.

Ideally: