Memcached as web page cache

2010-05-18 Thread Sun-N-Fun
I am considering Memcached as a web page cache, so that I can expire/ delete certain web pages as content changes on the backend. Is there a provision to use Memcached in this way, or is it stricktly for populating using the add method in the API?

Re: Memcached as web page cache

2010-05-18 Thread Joseph Engo
You might be better off with http://varnish-cache.org/ Sent from my über iPad On May 18, 2010, at 6:04 PM, Sun-N-Fun wrote: > I am considering Memcached as a web page cache, so that I can expire/ > delete certain web pages as content changes on the backend. Is there > a provision to use Memcac

Re: Memcached as web page cache

2010-05-19 Thread Artur Ejsmont
You should be able to do everything with memcached. From what i read Facebook even developed mysql extension to push data to cache on update. Not sure if they release it. Probably would be cool in some use cases. Check the API. On 19 May 2010 04:25, "Joseph Engo" wrote: You might be better off w

Re: Memcached as web page cache

2010-05-19 Thread Adrian Otto
In all honesty it might be more simple to use a proxy cache for this. There are proxy cache modules for most popular web servers, including Apache, Lighttpd, nginx, etc. Better yet using a caching proxy server like squid or varnish, or yahoo traffic server work well for higher traffic use cases.

Re: Memcached as web page cache

2010-05-19 Thread Artur Ejsmont
hehe i did not even think of that as i assumed he is developing some app and wants to use cache and control what and how is cached : ) ps. it could be good idea but then you have to make sure you dont have sessions and other stuff that may make your pages non cacheable. if its static site (o

Re: Memcached as web page cache

2010-05-19 Thread Sun-N-Fun
Thanks Joseph. Varnish is good info - it has provisions for deleting a cached page through the VCL language. On May 18, 8:25 pm, Joseph Engo wrote: > You might be better off withhttp://varnish-cache.org/

Re: Memcached as web page cache

2010-05-19 Thread Sun-N-Fun
Adrian - you are right, about re-inventing the wheel. What I was thinking exactly. I didn't think about RFC2616 Currently, the apache mod_jk with AJP is in use - maybe I should have mentioned this. Maybe this is what you mean by a cache module. In any case, I have yet to dig into mod_mem_cache a

Re: Memcached as web page cache

2010-05-19 Thread Sun-N-Fun
P.S. I don't see any way to delete a specific object from Apache mod_cache to force an update if content changes.

Re: Memcached as web page cache

2010-05-19 Thread Sun-N-Fun
Apache Traffic Server looks good! Has commands for deleting a specific object from the cache. On May 19, 7:25 am, Adrian Otto wrote: > Better yet using a caching proxy server like squid or varnish, or yahoo > traffic server work well for higher traffic use cases. >

Re: Memcached as web page cache

2010-05-19 Thread Les Mikesell
On 5/19/2010 1:46 PM, Sun-N-Fun wrote: Apache Traffic Server looks good! Has commands for deleting a specific object from the cache. I hadn't been paying attention. Is that released and ready for prime time now? -- Les Mikesell lesmikes...@gmail.com

Re: Memcached as web page cache

2010-05-20 Thread Sun-N-Fun
Yes, the writeup makes it look very robust. Developed at Yahoo 2002-2009 then given to open source. On May 19, 11:55 am, Les Mikesell wrote: > On 5/19/2010 1:46 PM, Sun-N-Fun wrote: > > > Apache Traffic Server looks good!  Has commands for deleting a > > specific object from the cache. > > I had