[PHP] Re: XCache, APC, Memcached... confused

2008-10-23 Thread Colin Guthrie

Stut wrote:

On 23 Oct 2008, at 00:04, Martin Zvarík wrote:
I am looking at the eAccelerator's website and I realize what got me 
confused:


there is a function for OUTPUT CACHE, so it actually could cache the 
whole website and then run out of memory I guess...


that means I would be able to store anything into the memory and 
reference it by a variable? are the variables accessible across the 
whole server? I still don't really understand, but I am trying...


Having never used eAccelerator I can only guess, but it sounds like it's 
a way to cache HTML output. As for how accessible that is I have no 
idea. I suggest you find the eAccelerator mailing list, subscribe to 
that and ask your question there.


If you are looking into caching things in a very flexible way I'd look 
at the Zend_Cache API from the Zend Framework.


It has backedns to connection to APC and Memcache and also implements a 
disk-based caching system. You can cache all sorts of output, from 
function calls (both return value and side-effect output), html output 
and arbitrary objects.


Using an opcode cache is generally a good idea (part of the APC core 
will be included in PHP6, which is why I'm currently backing that 
particular horse), but for an application-level caching strategy, I 
think Zend_Cache has a lot going for it :)


Col

--

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: XCache, APC, Memcached... confused

2008-10-22 Thread Martin Zvarík
I guess the XCache everybody talks about is the open-source here: 
http://xcache.lighttpd.net/


But what about this: http://www.xcache.com/ ... is it the same author? :-O


Martin Zvarík napsal(a):

Hi,
I became confused after an hour trying to understand the PHP cache 
solutions.


XCache, APC, eAccelerator and others are opcode cache systems... is 
memcache in the same category? or is it completely different?


If I install for example XCache, set it for certain directory... it will 
automatically cache the website into the memory. What happens if the 
memory will get full?


Thanks for explanation,
Martin


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: XCache, APC, Memcached... confused

2008-10-22 Thread Stut

On 22 Oct 2008, at 22:24, Martin Zvarík wrote:

I guess the XCache everybody talks about is the open-source here: 
http://xcache.lighttpd.net/


Indeed.

But what about this: http://www.xcache.com/ ... is it the same  
author? :-O


Nope, completely different commercial entity focused on hardware and  
software that implements gzip compression for TCP connections. Nothing  
at all to do with PHP.


-Stut

--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php