Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Page 1 of 2 12 LastLast
Results 1 to 15 of 24

This is a discussion on PHP Caching Scripts in the VPS & Dedicated forum
Are PHP caching scripts available through any of the VPS control panels? I wanted to install one but was wondering if an easy click and ...

  1. #1
    JPC Addict
    Join Date
    Mar 2004
    Posts
    158

    PHP Caching Scripts

    Are PHP caching scripts available through any of the VPS control panels? I wanted to install one but was wondering if an easy click and install option was already avaialble. Thanks.

  2. #2
    Administrator Eric's Avatar
    Join Date
    Sep 2001
    Posts
    853
    Are you curious if something like mmcache is available as a one click install? I'm not 100% sure what you mean.
    Eric E. [eric@jaguarpc.com]
    Jaguar Technologies, LLC
    JaguarPC.com * DedicatedSpace.com

  3. #3
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Yep, I think that's what she's asking. APC seems to be the up and coming one btw. They're even currently considering including it in the standard distribution of PHP.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  4. #4
    JPC Addict
    Join Date
    Mar 2004
    Posts
    158
    I wanted to install eAccelerator. I noticed Zend Optimizer is already running. Do I need another PHP caching script or is Zend Optimizer sufficient?

  5. #5
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Sufficient depends on what performance you have / need. Zend Optimizer is not a chaching script. It optimizes another step of the process and can be run alongside a byte chache of your choosing.

    I've used eAccelerator on an intranet server with PHP 5.0 myself and that worked fine. I had to stop using it though when I upgraded PHP to version 5.1. If you wish to use it for PHP 5.1 do have a good look around first to see if the (well known) problems it had with that version have been resolved (or just go with APC instead).
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  6. #6
    Voltron wannabe tank's Avatar
    Join Date
    Apr 2004
    Location
    Houston
    Posts
    306
    Have you guys gotten APC to run on the VPS's running on centOS? I have had a headache trying to get it up and running. I used eAccelerator as well up till I upgraded to PHP 5.1 and then had the same issues that everyone else is seeing.

  7. #7
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Out of curiosity, why are you 'guys' caching your sites?

    I run a flat file cache for Open Directory Project search results, on my site, but it's out of necessity. If you hit ODP too frequently, it starts throttling you back, so to speak -- like some sort of flood control, or whatever. The more you hit ODP, the less responsive it becomes, so, I cache the results for a week.

    To tell you the truth, other than situations like the above, I've never understood why webmasters want to serve stale pages, and so forth, from a cache.

    On top of that, caching your site is sometimes highly undesireable, e.g. you have to be very careful what you cache and what you don't. If you cache everything, usually your site will get all jacked up. Moreover, when you start 'un-caching' the stuff that shouldn't be cached, there's usually no speed benefit, et cetera, so I don't get it...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  8. #8
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    I think they're talking about code caching, Vin.

  9. #9
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Yes, these packages cache PHP code in a compiled state so that scripts can run faster. They don't cache the actual content of the pages (unless its embedded in the code, of course).

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  10. #10
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by jason
    Yes, these packages cache PHP code in a compiled state so that scripts can run faster...
    Hrm... Maybe I didn't ask the right question...

    With all the latency involved, serving PHP web pages on the web, especially on a $10/mo. shared hosting plan, what friggin' difference does it make?
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  11. #11
    Voltron wannabe tank's Avatar
    Join Date
    Apr 2004
    Location
    Houston
    Posts
    306
    yes. it brings the overall apache server load down due to teh code allready being compiled and stored. It actually works very well on a busy site. On one of the ded boxes that we run the stats are around 1200 cached files and around 30 requests per second. It reduced the overall load by about 1/4. that is using APC on Fedora. I still can't get it installed on CentOS.

    The papers I saw on PHP6 say that APC is coming bundled in the package.

  12. #12
    Voltron wannabe tank's Avatar
    Join Date
    Apr 2004
    Location
    Houston
    Posts
    306
    Quote Originally Posted by Vin DSL
    With all the latency involved, serving PHP web pages on the web, especially on a $10/mo. shared hosting plan, what friggin' difference does it make?
    you're in the VPS forum Vin

    see my numbers above

  13. #13
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by tank
    you're in the VPS forum Vin

    see my numbers above
    Heh, sorry! My bad!

    Carry on!
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  14. #14
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Quote Originally Posted by Vin DSL
    With all the latency involved, serving PHP web pages on the web, especially on a $10/mo. shared hosting plan, what friggin' difference does it make?
    I suppose that's for JagPC to answer. I don't think they've got it installed on the shared servers, so I suppose they agree with you on that one.

    Personally, I suspect it works best on a server that sees a lot of hits on a relatively small percentages of the available pages. I doubt that's the case on the average shared server.

    Why? Because the cache isn't endless and the caching itself takes time too. IIRC my tests on PHP5 + eAccelarator showed something like this. Requesting a page for the first time cost 130% of time PHP only would take. Requesting the same page again took 40% of time PHP only would take. Of course, much can no doubt be done by tweaking the settings, but the point remains: if you see hits predominantly on a handfull of pages, byte cache is great, especially if you can allocate memory to it (not just disk space), but if your hits are widespread, you'll have a lot of fine tuning to do for what probably ends up as a minor speed gain only. You'll have to invest a good deal of diskspace for that and you'll be juggling optimal settings for memory use over a number of caches fighting for it, as there's not just the PHP byte chache that would like it, but other caches such as a disk cache and MySQL's cache as well.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  15. #15
    JPC Addict
    Join Date
    Mar 2004
    Posts
    158
    Just installed eAccelarator. It wasn't as hard as I thought, the instructions were clear. Anyhoo, I notice a big difference in page loading time. Thanks.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •