How to add a caching system to my site

Discussion in 'Site & Server Administration' started by McDoug, Feb 3, 2010.

  1. #1
    I have had my site up and running for the last 3 months and hostgator just decides to take my site down today because they are saying my traffic is causing trouble for others on my server. However, I have had the same amount of traffic over the last 3 months as I do now.

    They say I need to add some sort of cache to my site. How can I do this and what does this even mean. I really need the sites up now cause im losing money!

    Thanks
     
    McDoug, Feb 3, 2010 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    I had similar situation some 4 years ago with another major host. that was a great blessing for me !
    If a host thinks your traffic too high
    then it may be time YOU upgrade yourself and opt for your own dedicated server
    means of course YOU sit down and learn whatever is missing - like linux server admin - on your own offline laptop
    then go on and move to dedicated

    I had at that time some 4500 uv/day
    now i have many times more traffic and full control ( and 4 servers ) to maintain max user comfort

    caching systems normally require server control as many are done on server-level
    moving from hosted to dedicated is like loosing virginity - you may be scared before and enjoy it later all the way. publishing on your own server is much more rewarding also financially.
     
    hans, Feb 3, 2010 IP
  3. McDoug

    McDoug Peon

    Messages:
    283
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I would much rather just add this cache system for now but I may want to go that way in the future. how much is the dedicated server costing you per month?
     
    McDoug, Feb 3, 2010 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    Start with a VPS, then upgrade to dedicated if needed. What type of site do you run, wordpress, vbulletin, other....?
     
    RHS-Chris, Feb 3, 2010 IP
  5. McDoug

    McDoug Peon

    Messages:
    283
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I talked to hostgator and they said the VPS is less powerful then the shared server I am on right now. I run an image hosting site.
     
    McDoug, Feb 3, 2010 IP
  6. pinkretard

    pinkretard Peon

    Messages:
    96
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I believe that caching was meant to be configured in .htaccess . That's all folks. Add compression and you're getting better.

    # compress the files
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript
    # removes some bugs
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    Header append Vary User-Agent

    <FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|css|js)$">
    Header set Cache-Control "max-age=3024000"
    </FilesMatch>


    Of course, modify in order to fit your website's needs. And... jpegoptim and optipng are good too :) .
     
    pinkretard, Feb 13, 2010 IP