Iām willing to bet thereās no āpossibleā about it.
Iām wondering if āreal time - liveā stats are needed here.
Would it be that big of a deal if āall timeā and ā7 daysā were a bit off depending on the time the About page was looked at?
Personally, I donāt have a problem with the page load time, but maybe some kind of CRON could be used to get the stats āclose enoughā?
At least for the About. IMHO the Admin stats are viewed less frequently and by those more understanding so leaving them to be created āwhen calledā should be OK as is and have benefit the way they are.
@neil for this page, drop the deleted_at part of the query ā the total posts minus deletions is just going to be noise, how many can there possibly be? We donāt need that much accuracy here.
The index only improves it a bit, it still has to scan the entire index to get the count, data here should be cached at least for a few minutes, and the transition should be smoother.
Iām working on a fix right now for the dropdown not dismissing until the new page loads. Iāve provided two samples below, fadeOut('fast') and hide() respectively.
fadeOut('fast')
hide()
Would love to get some thoughts on which to go with.