Display Popular Posts Performance Issue
-
Hi,
I use shortcode to display popular posts and set data caching to 1 hour. The popular posts list fast loading when it retrieves from cache, but took around 1 to load the query if it need to refresh the caches.
SELECT SUM(pageviews) AS total FROM
wp_popularpostssummary
v LEFT JOINwp_posts
p ON v.postid = p.ID WHERE p.post_type IN('post') .....Is there any suggestion to speed it up please? I’m thinking about a cronjob to run the query, like each 30 mins but not sure to do it yet!
Thank you for your input.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Display Popular Posts Performance Issue’ is closed to new replies.