Caching queries, profiles, and media

alt=
DannyA
@dannya
9 years ago
584 posts
I've noticed on my home page http://dev.cleartracks.com, that my artists and labels (profiles)images load instantly, while songs, mixes, and feed item images load slowly.

Is there a difference in how queries are cached by jr for different content types?
updated by @dannya: 06/29/15 05:46:03PM
michael
@michael
9 years ago
7,717 posts
Can't notice the difference in speed here. It all looks pretty snappy to me.
alt=
DannyA
@dannya
9 years ago
584 posts
Hmm. ok . Thanks.

Did you try to re-load after page was cached? My concern is that some things are being cached and some things aren't. I would think that when the page loads the first five newest artists, that query is cached and we don't need to re-query every time the page load. I'm not sure how long queries caches last. But like i said, for me the artists pop up instantly, while songs take a little longer. I was worried that we are re-querying the server unnecessarily (since it should be cached) and causing a delay.

Anyway, thanks for taking a look.
michael
@michael
9 years ago
7,717 posts
On a refresh of the page there is zero wait time on anything its just there.

If i ctrl+F5 to clear the browser cache, there is a slight delay below the cutoff but its real slight.

After a couple of refreshes, the slowest image in the ARTISTS section is the first one "artist eleven is a long profile name" and the SONGS section comes in after the artists section. I'll make a screen cast.
zip
cleartracks.mp4.zip  •  3.8MB


updated by @michael: 05/29/15 12:08:13AM
michael
@michael
9 years ago
7,717 posts
seams like any delay that could be happening would come from the ajax requests. The full page maybe cached but the parts of it are still loaded via a request to each of the sections.
alt=
DannyA
@dannya
9 years ago
584 posts
Got it. Thanks.

Tags