Unnecessary queries during page load
-
Doing performance testing with Query Monitor, I noticed the following queries originating from your plugin during load of a page:
SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month FROM wp_jjnk95_posts WHERE post_type = 'attachment' ORDER BY post_date DESC wp_enqueue_media() Plugin: real-media-library-lite 3 0.0066 45 SELECT COUNT(*) FROM wp_jjnk95_realmedialibrary WHERE parent > -1 MatthiasWeb\R\v\Lang->getItems() Plugin: real-media-library-lite 1 0.0014 46 SELECT option_value FROM wp_jjnk95_options WHERE option_name = 'real_utils-transients' LIMIT 1These seem unnecessary overhead during a page rendering, and likely to add significantly to the page load time in cases where the media library contains a lot of images. What possible reason can there be to pull a list of all media created in the current month? Your plugin has no legitimate role in page rendering and should not be performing any operations in this context.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Unnecessary queries during page load’ is closed to new replies.