Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

PHP: The need for speed
Want More Speed? Let's Cache...
If you need extra speed for your heavy PHP application, than probably the solution is caching. There are some possible solutions out there. I tried Zend Cache (trial-version), APC, and Afterburner Cache.
The above are "caching modules". They store and intermediate coded version of your PHP sources inside the webserver's memory, the first time your .php file has been requested, and they serve subsequent requests with the "compiled" version. This approach can really boost your application's performance, since this minimizes access to disk (the code has been already read and parsed), and also works in RAM, which makes things a lot faster. Obviously the caching module will notice of changes in your PHP sources, and will redo the job again, so your users won't get pages coming out of stale cached PHP code. Caching modules are really well-suited for heavily loaded sites, since they can decrease your server's load and make PHP work even faster. But, which one should I choose?
Zend Cache is a commercial product from Zend Technologies (yes, the ones that brought us the PHP engine and the Zend Optimizer for free...). It really does what they say! You can notice the speed improvement in heavy PHP pages just after the first run, and the server also has more free resources. Unfortunately you have to pay for this, but in some cases it's well worth the price.
Afterburner Cache is a free caching module available from Bware Technologies. Currently in beta, it seems to do same the same things that Zend Cache does. It can't push performance up as Zend Cache does (yet), and it doesn't work with Zend Optimizer yet, but it's free, and my compliments go to bware folks for this nice job.
APC (Alternative PHP Cache) is another free caching module available from Community Connect. Seems stable enough for production use, and also seems to speed up things a lot. Beware, I haven't found a official benchmark yet, so I had to test them with some of my applications. As always, your mileage my vary.
[ Next Page ]

[Page 1]  [Page 2]  


Comments:
This was closely associated with the rebirth of Sex Beplaced Ru 12/06/04 16:31
it tells me i don't have Sex12/06/04 16:29
If not, what were all the witch trials about? Sex12/06/04 16:27
You are right ofcourse... But...Sex Beplaced Ru 12/06/04 16:27
freaking BS, I enjoyed the IPFreeflashonlinegames Com 12/06/04 16:24
´ë'Ãâ'°Å'Àý'½Ã'100%µÇ'°Ô'ÇÏ'´Â'¹æ'¹ýÇѰæ¿í12/05/04 08:43
Ä«/µå/µ¹·Á¸·±â·Î/¸Á°¡Áö½ÅºÐ/²À º¸¼¼¿ä!ÀÌÇýÁø11/24/04 20:35
´ë'Ãâ'°Å'Àý'½Ã'100%µÇ'°Ô'ÇÏ'´Â'¹æ'¹ýÇѰæ¿í11/24/04 06:43
½Å.¿ë.ºÒ.·®.ÀÚ/´çÀÏ500/´ë.Ãâ.ºñ.¹ýÀÌÈñÁø11/19/04 21:50
10_ºÐ¾È¿¡ Çö.±Ý40¸¸_¿ø ¸¸.µé,±âÀÌÁ¤¿¬11/15/04 08:09
´ë'Ãâ'°Å'Àý'½Ã'100%µÇ'°Ô'ÇÏ'´Â'¹æ'¹ýÇѰæÇý11/13/04 04:38
pls helpalin10/16/02 08:46
hi im backzaid09/30/02 14:17
RE: persistent variables without sessionsBenjamin Roth09/12/02 19:53
Shameless ZEND plug here?cedric veilleux08/23/02 17:42
Having strange W2k Adv Srvr perfomace probsJeff Barton06/27/02 20:07
RE: What about .js and .css files?Edward Tsai06/26/02 14:58
gzhandlerdanbee01/22/02 12:22
RE: What about .js and .css files?sergio09/19/01 09:44
persistent variables without sessionsGreg Wallis07/17/01 12:18
HELP!how to make my site fastsantosh06/23/01 02:16
RE: gzip?Sean Allin06/21/01 12:57
RE: Caching in memoryHinnerk Bruegmann05/29/01 13:51
RE: HELP!!How to limit records in ORACLE?V. O05/09/01 09:03
HELP!!How to limit records in ORACLE?kaiser05/04/01 07:44
RE: Zend optimizer reported in phpinfo but...?Piergiorgio Spagnolatti04/25/01 14:14
Zend optimizer reported in phpinfo but...?Venkatesh04/17/01 04:35
RE: What about .js and .css files?Piergiorgio Spagnolatti04/06/01 02:06
What about .js and .css files?Len Coonan04/02/01 22:06
Re: PHP Need for speedxcyber03/31/01 04:41
Re: PHP Need for speedRay03/30/01 16:50
RE: gzip?Piergiorgio Spagnolatti03/30/01 07:29
Sending gzipped cached pages.Jean-Pierre Deckers03/27/01 14:35
minimize the "include" functionJoe Shelby03/26/01 14:10
RE: mod_gzip 1.3.19.1aPiergiorgio Spagnolatti03/26/01 01:19
RE: Gzip strange behaviourEric Blade03/25/01 23:17
RE: Caching in memoryZeev Suraski03/25/01 17:30
RE: gzhandler: don't beleive everything you readZeev Suraski03/25/01 17:23
Tweaking codeEric Blade03/24/01 11:15
mod_gzip 1.3.19.1aTim Frank03/23/01 22:25
RE: Gzip strange behaviourDave Gullo03/23/01 19:01
RE: What load does GZIP put on the CPU?Ingo03/23/01 11:20
gzip?Vladimir Rüntü03/23/01 03:14
RE: Caching in memoryPiergiorgio Spagnolatti03/23/01 03:02
RE: Gzip strange behaviourPiergiorgio Spagnolatti03/23/01 02:43
RE: gzhandler: don't beleive everything you readPiergiorgio Spagnolatti03/23/01 02:41
RE: That looks greatPiergiorgio Spagnolatti03/23/01 02:33
RE: What load does GZIP put on the CPU?Piergiorgio Spagnolatti03/23/01 02:30
RE: PHP4 versus PHP3Piergiorgio Spagnolatti03/23/01 02:23
Gzip strange behaviourMichael Kimsal03/22/01 19:24
Caching in memoryOnno Benschop03/22/01 18:52
Well tackled the problemMoritz Post03/22/01 14:00
Somebody set up us the bomb!Rich Alloway03/22/01 12:33
PHP4 versus PHP3Michael Koehler03/22/01 12:09
That looks greatRonan03/22/01 11:09
gzhandler: don't beleive everything you readTom Anderson03/22/01 10:28
Addendum/ErrataPiergiorgio Spagnolatti03/22/01 06:14
For more PHP speedup tips, visit this URLJohn Lim03/22/01 02:05
What load does GZIP put on the CPU?stef03/21/01 23:54
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.