Author |
|
C0nw0nk
Joined: 07 Oct 2013 Posts: 241 Location: United Kingdom, London
|
Posted: Mon 16 Jun '14 15:19 Post subject: Caching in Web Based Applications |
|
|
So I created this topic to discuss and get to the bottom of what applications work best with specific caching methods aswell as best caching setup's, techniques etc. |
|
Back to top |
|
C0nw0nk
Joined: 07 Oct 2013 Posts: 241 Location: United Kingdom, London
|
Posted: Mon 16 Jun '14 15:23 Post subject: |
|
|
When caching with xcache in php isit a good idea to limit php max requests ?
Code: | set PHP_FCGI_MAX_REQUESTS=10000 |
What would be so terrible about allowing unlimited requests ?
Code: | set PHP_FCGI_MAX_REQUESTS=0 |
|
|
Back to top |
|
ng4win
Joined: 25 May 2014 Posts: 78
|
Posted: Mon 16 Jun '14 16:00 Post subject: |
|
|
C0nw0nk wrote: | What would be so terrible about allowing unlimited requests ?
Code: | set PHP_FCGI_MAX_REQUESTS=0 |
|
Nothing really, but most programs don't cleanup after themselves, especially when running scripts for ages, its better to let them restart once a while. |
|
Back to top |
|
C0nw0nk
Joined: 07 Oct 2013 Posts: 241 Location: United Kingdom, London
|
Posted: Mon 16 Jun '14 17:34 Post subject: |
|
|
I am actualy able to run php 5.4.x with all these caches running at the same time
Code: | extension=php_wincache.dll
extension = php_memcache.dll
;zend_extension = "C:\Users\root\Desktop\php-5.4.29-nts-Win32-VC9-x86\ext\php_opcache.dll"
zend_extension = "C:\Users\root\Desktop\php-5.4.29-nts-Win32-VC9-x86\ext\php_opcache54.dll"
extension = php_xcache.dll |
I doubt it speeds it up at all and if it misses the cache on one i suppose it falls back onto the other caching method. |
|
Back to top |
|
gijs
Joined: 27 Apr 2012 Posts: 189 Location: The Netherlands
|
Posted: Mon 16 Jun '14 17:36 Post subject: |
|
|
is xcache better than opcache which comes with PHP 5.5? |
|
Back to top |
|
C0nw0nk
Joined: 07 Oct 2013 Posts: 241 Location: United Kingdom, London
|
Posted: Mon 16 Jun '14 17:50 Post subject: |
|
|
I have not benchmarked yet but i like memcache but i am keeping a very close eye on it with Joomla 2.5 apparently memcache and Joomla 2.5 do not like eachother. (Slows the site down) Is what i have read but for me it has not done it yet.
Also for me in 5.5 opcache kept crashing
Doing some research memcached can be used with Nginx too
http://nginx.org/en/docs/http/ngx_http_memcached_module.html |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7398 Location: EU, Germany, Next to Hamburg
|
Posted: Mon 16 Jun '14 20:08 Post subject: |
|
|
For opcache with 5.5 runs very fine. With some custom apps and also wordpress. |
|
Back to top |
|
C0nw0nk
Joined: 07 Oct 2013 Posts: 241 Location: United Kingdom, London
|
Posted: Mon 16 Jun '14 21:23 Post subject: |
|
|
For me with joomla 2.5 it crashed on 64bit. I never tested with 32bit. |
|
Back to top |
|
ng4win
Joined: 25 May 2014 Posts: 78
|
Posted: Mon 16 Jun '14 21:36 Post subject: |
|
|
gijs wrote: | is xcache better than opcache which comes with PHP 5.5? |
To each their own but I found xcache to be the most compatible and stable with what we serve here which are mainly php 5.4-nts CRM and ERP applications. The others did some weird stuff. |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7398 Location: EU, Germany, Next to Hamburg
|
Posted: Mon 16 Jun '14 21:57 Post subject: |
|
|
C0nw0nk wrote: | For me with joomla 2.5 it crashed on 64bit. I never tested with 32bit. |
The x64 windows builds are experimental. And even with the 32 bit / x86 the NTS sometimes took apache down with mod_fcgid, which is oddd, since it run sperated. So the best choise for me is x86 TS version. |
|
Back to top |
|
C0nw0nk
Joined: 07 Oct 2013 Posts: 241 Location: United Kingdom, London
|
Posted: Tue 17 Jun '14 14:23 Post subject: |
|
|
For me going from 64bit back to 32bit php 5.4 with wincache and now xcache i have had no crashes I don't think i will ever use a threaded version again. I had to many problems with threaded servers and versions of php. Always crashing slowing down.
And with memcache on Joomla 2.5 it ran out of memory and locked up slowing everything down so i dropped memcached and will stick to just XCache and Wincache since they work very well  |
|
Back to top |
|
C0nw0nk
Joined: 07 Oct 2013 Posts: 241 Location: United Kingdom, London
|
Posted: Thu 19 Jun '14 21:19 Post subject: |
|
|
I have dropped wincache for xcache since it works amazingly
http://en.wikipedia.org/wiki/List_of_PHP_accelerators
I do how ever want to bench mark and see what all their outputs are
I recon APC might go better since apparently they are going to use it in PHP 5.6 |
|
Back to top |
|