Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cache/compression
17-06-2009, 07:13 AM
Post: #1
cache/compression
I've been screwing with YSlow lately (Yahoo's very useful website improvement tool), and I've found some useful things I'm not sure if wImg uses for not (but would be very helpful).

1) GZIP
For larger files, epicness. I have a 26.5K that is only 8.8K thanks to GZIP.
mod_rewrite that shit to some PHP file that does this:
if (strpos($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip") !== false)
{
header("Content-Encoding: gzip");
ob_start("ob_gzhandler");
}
And enjoy your faster servers and less bandwidth costs.
I don't think it's as effective or even helpful for smaller files. But definately for files 10KB+. I can't imagine the help on files in the MBs.

2) cache
It's not like wImg even supports image updating, so the cache for that shit needs to be set to 10 freaking years in the future. There is no reason for that cache to ever expire. Ever. At least for user uploaded files.

DO IT. NOW!

Visit this user's website Find all posts by this user
Quote this message in a reply
17-06-2009, 08:38 PM
Post: #2
RE: cache/compression
It looks like the upload stats page is updated every time its loaded too. It takes about 20 seconds to load for me, while all other pages load instantly.
Find all posts by this user
Quote this message in a reply
17-06-2009, 10:27 PM
Post: #3
RE: cache/compression
(17-06-2009 08:38 PM)simie Wrote:  It looks like the upload stats page is updated every time its loaded too. It takes about 20 seconds to load for me, while all other pages load instantly.

That page is going to start getting cached & updated every hour instead. Smile
Visit this user's website Find all posts by this user
Quote this message in a reply
18-06-2009, 04:49 AM
Post: #4
RE: cache/compression
What about the GZIPing and expiration dates?

Visit this user's website Find all posts by this user
Quote this message in a reply
18-06-2009, 09:35 AM
Post: #5
RE: cache/compression
(18-06-2009 04:49 AM)Charles Stover Wrote:  What about the GZIPing and expiration dates?

I'll be looking into them, and perhaps get them put into v2.5 if not, definitely 3.0 Smile
Visit this user's website Find all posts by this user
Quote this message in a reply
19-06-2009, 04:51 AM
Post: #6
RE: cache/compression
I can definately code them for you if you IM me about it. I just did this for GamingMedley, so I'm familiar with how and have the necessary tools. Smile

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


Coming soon to a wImg Host Support forum near you...