Re: Avatars ?'s
Reply #1 –
I did some testing on item 2 for my own understanding, very synthetic but gave me some direction.
The results with the cache off were overall slower, with file cache on a small improvement was seen (and those were pretty good conditions meaning high cache hits), and if using a real cache they were significantly better.
I added in the cache to the avatar query to help, it should provide some improvement, particularly for recent topic views etc. Still don't know on number one ...
Re: Avatars ?'s
Reply #2 –
I'm curious about #1 too. I can't think of any good reason we would need to keep track of avatar views...
Re: Avatars ?'s
Reply #4 –
Caching avatar code..does that mean caching queries for every avatar in separate files? Won't it be enormous amounts of cache files if you got 10k members? Which again could be a problem should you want to clear all cached files?
Re: Avatars ?'s
Reply #5 –
Yes thats a valid concern... I thought the same thing as well
The cache does have a TTL with each entry so times don't live forever, just long enough to be of use, so really the cache would be active/successful for the just most recent and active topics (or really the posters avatars in those), not all avatars nor forever.
This is also only for avatars that are server stored without the use of a separate avatar directory. SMF saves (by default) those avatars like an attachment (?action=dlattach;) so to see the avatar its goes through that system, not a simple http:// request. If you use a directory (and you should) this is a moot point.
So I'm still deciding what to do here, the cache does help somewhat, but not sure we should use the ?action=dlattach; at all ... still trying to understand why it was done that way.