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.