Software
Dolphin Tips
Licensing
Hosting
FREE Mods
People Forums Tutorials Blogs Help Search  
 
  •  
 
 
Actions
Sponsored Links
Rate
0 votes
Overview
gameutopia's thoughts, ideas, and other ramblings.
Categories
Alexa (1 posts)
Articles (2 posts)
Boonex (46 posts)
Dedicated Servers (1 posts)
Dolphin Mods (1 posts)
Entertainment  (1 posts)
Google, Yahoo and MSN (12 posts)
Microsoft (4 posts)
My Ramblings (22 posts)
Resources (7 posts)
Swine Flu (1 posts)
Tech News (1 posts)
The Economy (2 posts)
Thoughts (3 posts)
Voting (1 posts)
Wordpress (1 posts)
Dolphin 7 Cache
Dolphin 7 Cache
164 days ago 2 comments Categories: Boonex Tags: Dolphin7, Cache

I don't know if any of you have messed with the various cache features in your Dolphin 7 Administration or not. I have played around with testing it the past few days. After a fresh install, some of it is enabled by default. I have tried enabling one at a time, and various combinations of 2, 3, and more cache features.

I am coming to the conclusion that I see very little benefits of enabling caching.

The only benefits I see or notice is you will have less files to load if you have .js or .css caching enabled. This could potentially make your site load slightly faster and more consistent. However, the file sizes tend to increase quite a bit resulting in more bandwidth and a larger amount of info to load. So you kind of win one, but lose one at the same time.

If you enable .html caching your page size jumps up a lot in size so more bandwidth again.

If you enable .js, .css, .html, and image caching the total size of everything to load jumps up substantially, meaning a lot more bandwidth. I am not a fan of a single homepage that has 1-3mb's to load up.

All of this could potentially reduce the load on the server a bit, but unless you have a busy site I don't see how this would benefit you much.

The other drawbacks is with caching enable it makes things more difficult to find should you want or need to edit some of the .css files for example. Instead of common.css you will see something like: cache_public/bx_templ_css_2cb3f4e1a3ee905ad5ac30930bf9d26c.css. Which creates some confusion to where the actual file is to edit for many users.

My site was actually smaller in terms of size to load up everything with no-cache when compared to enabling cache. I don't have the speediest internet connection, nor do I have the slowest either, but I didn't notice any load time differences. Maybe if you have a slower connection you might notice, but I didn't.



After messing with Dolphin 7's caching for several days I decided to take a different approach. I decided to see what I could do with gzip/deflate. Basically apache's way of sending content to a web browser that supports it in compressed format. Most newer browsers do support this. The server/host must also have gzip/deflate configured and enabled. Many hosts do, but not all of them.

I have so far taken my sites main homepage from a little over 800 kb's in size down to 350 kb's so far, and I still have a few more files to do yet.

I will continue monitoring and testing this over the next few days to maybe a week to gather statistics, but so far it has saved me a lot of bandwidth. It's hard to put an exact number on how many seconds it actually takes to load, but I do believe it is loading faster now too.


Like I said I will have a few more files to tweak yet, and monitor it for a week to gather more data to see if it really meets my expectations or not.

It works well on .css, .js, text/html, but not images as image formats like .jpg/.jpeg are already compressed.

Depending on the actual file gzip/deflate can easily compress 50-90%. Which is a lot of bandwidth savings, but also results in faster loading pages.


There is a little work involved to make it happen, but nothing crazy. Just a few simple lines of code to add. Most of the time involved for me was to actually find the necessary Dolphin files, which took a little time.

If it turns out that I am still pleased with the results in about a week, I will add a tutorial / article about how to do this if anyone is interested.

Comments
Order by: 
Per page: 
 
  •  gameutopia wrote 132 Days Ago (neutral) 
     
    0
    Many hosts have gzip / deflate these days. I have compressed a number of php files, .js, and .css. Reducing page sizes by over 80% in some cases. Basically since page, .js, and .css is reduced so much both bandwidth and page load time is reduced. I don't care about bandwidth so much as I have more than I need, but increased page load time would be ideal. It worked really good in d6.1, but now in d7 it is a little bit more tideous and lengthy process for the .js and .css. A bunch more files to modify than I would like. I need to spend more time with it in d7 yet to get a few kinks worked out. There are some online testers that you can check before and after gzip. Also consider just to load one d7 page there are a bunch of .js, .css, and include tons of other .php files and it becomes apparent that in d7 just about any page is rather large to load.
     
       
     
     
    1 point
     
  •  ladybugn wrote 133 Days Ago (neutral) 
     
    0
    I'm interested for sure. Some performance analyzer - optimizer site I was looking at suggested this gzip/deflate thing, and I gather dreamhost has it enabled because my non dolphin package came back as compressed. I don't know anything about it so I'll try to do some research so I can follow your update on this!
     
       
     
     
    1 point
     
Copyright © 2010 DialMe.com