logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Caching in Web Based Applications
Author
C0nw0nk



Joined: 07 Oct 2013
Posts: 241
Location: United Kingdom, London

PostPosted: Mon 16 Jun '14 15:19    Post subject: Caching in Web Based Applications Reply with quote

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

PostPosted: Mon 16 Jun '14 15:23    Post subject: Reply with quote

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

PostPosted: Mon 16 Jun '14 16:00    Post subject: Reply with quote

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

PostPosted: Mon 16 Jun '14 17:34    Post subject: Reply with quote

I am actualy able to run php 5.4.x with all these caches running at the same time Razz

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

PostPosted: Mon 16 Jun '14 17:36    Post subject: Reply with quote

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

PostPosted: Mon 16 Jun '14 17:50    Post subject: Reply with quote

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 Sad

Doing some research memcached can be used with Nginx too Very Happy
http://nginx.org/en/docs/http/ngx_http_memcached_module.html
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 16 Jun '14 20:08    Post subject: Reply with quote

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

PostPosted: Mon 16 Jun '14 21:23    Post subject: Reply with quote

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

PostPosted: Mon 16 Jun '14 21:36    Post subject: Reply with quote

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: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 16 Jun '14 21:57    Post subject: Reply with quote

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

PostPosted: Tue 17 Jun '14 14:23    Post subject: Reply with quote

For me going from 64bit back to 32bit php 5.4 with wincache and now xcache i have had no crashes Very Happy 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 Smile
Back to top
C0nw0nk



Joined: 07 Oct 2013
Posts: 241
Location: United Kingdom, London

PostPosted: Thu 19 Jun '14 21:19    Post subject: Reply with quote

I have dropped wincache for xcache since it works amazingly Smile

http://en.wikipedia.org/wiki/List_of_PHP_accelerators

I do how ever want to bench mark and see what all their outputs are Very Happy

I recon APC might go better since apparently they are going to use it in PHP 5.6
Back to top


Reply to topic   Topic: Caching in Web Based Applications View previous topic :: View next topic
Post new topic   Forum Index -> Other Software