<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" > <channel><title>Comments on: Using Memcache server as Apache content cache</title> <atom:link href="http://www.mabishu.com/blog/2009/12/08/using-memcache-server-as-apache-content-cach/feed/" rel="self" type="application/rss+xml" /><link>http://www.mabishu.com/blog/2009/12/08/using-memcache-server-as-apache-content-cach/</link> <description>Agile Programming</description> <lastBuildDate>Tue, 24 Jan 2012 10:17:34 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>By: grimfromghent</title><link>http://www.mabishu.com/blog/2009/12/08/using-memcache-server-as-apache-content-cach/comment-page-1/#comment-1072</link> <dc:creator>grimfromghent</dc:creator> <pubDate>Fri, 20 May 2011 14:28:58 +0000</pubDate> <guid isPermaLink="false">http://www.mabishu.com/?p=506#comment-1072</guid> <description>Hi,I&#039;m not sure why, but there seems to be something wrong with the way this mod stores/reads its values from memcached servers. As long as the time between a read and a store is long enough, everything goes fine.That&#039;s why I made a script to download the images (jpeg) at fast speed (over localhost on the server). What did I see?iterate over a list of DIFFERENT images: everything fine iterate over a list of SAME images: MIME-type of the images not correct (after the second iteration, the MIME-type was wrong)I wrote the value to a logfile, and then changed the extension to see if my explorer could open the image. But NO. Looking in this so called image, the data seemed to be incorrect (no JFIF header for example). At other moments, the header was correct, but only a part of the image was stored.Does this have something to do with the maximum file size of every object? (I thought the mod doesn&#039;t store the values, if they higher than this?) That could explain why the data is truncated.I also disabled UDP, with no affect. I even changed the number of threads in memcached to 1 (I thought that one apache thread was already reading, while the other was still writing), but it does not make a difference (apart from the performance).P.S. IIPImage also uses memcached, and doesn&#039;t have this problem. (see http://iipimage.sourceforge.net/blog/)Any idea?thanks in advance!</description> <content:encoded><![CDATA[<p>Hi,</p><p>I&#8217;m not sure why, but there seems to be something wrong with the way this mod stores/reads its values from memcached servers. As long as the time between a read and a store is long enough, everything goes fine.</p><p>That&#8217;s why I made a script to download the images (jpeg) at fast speed (over localhost on the server). What did I see?</p><p>iterate over a list of DIFFERENT images: everything fine<br /> iterate over a list of SAME images: MIME-type of the images not correct<br /> (after the second iteration, the MIME-type was wrong)</p><p>I wrote the value to a logfile, and then changed the extension to see if my<br /> explorer could open the image. But NO. Looking in this so called image,<br /> the data seemed to be incorrect (no JFIF header for example). At other moments, the header was correct, but only a part of the image was stored.</p><p>Does this have something to do with the maximum file size of every object?<br /> (I thought the mod doesn&#8217;t store the values, if they higher than this?)<br /> That could explain why the data is truncated.</p><p>I also disabled UDP, with no affect. I even changed the number of threads in memcached to 1 (I thought that one apache thread was already reading, while the other was still writing), but it does not make a difference (apart from the performance).</p><p>P.S. IIPImage also uses memcached, and doesn&#8217;t have this problem.<br /> (see <a href="http://iipimage.sourceforge.net/blog/" rel="nofollow">http://iipimage.sourceforge.net/blog/</a>)</p><p>Any idea?</p><p>thanks in advance!</p> ]]></content:encoded> </item> <item><title>By: admin</title><link>http://www.mabishu.com/blog/2009/12/08/using-memcache-server-as-apache-content-cach/comment-page-1/#comment-178</link> <dc:creator>admin</dc:creator> <pubDate>Thu, 28 Jan 2010 11:45:14 +0000</pubDate> <guid isPermaLink="false">http://www.mabishu.com/?p=506#comment-178</guid> <description>Hi opyate,I&#039;ll study the memcache apache module this weekend but the previous week I taken a look and It&#039;s just a line on the code, very clean indeed.Thanks for the comment</description> <content:encoded><![CDATA[<p>Hi opyate,</p><p>I&#8217;ll study the memcache apache module this weekend but the previous week I taken a look and It&#8217;s just a line on the code, very clean indeed.</p><p>Thanks for the comment</p> ]]></content:encoded> </item> <item><title>By: opyate</title><link>http://www.mabishu.com/blog/2009/12/08/using-memcache-server-as-apache-content-cach/comment-page-1/#comment-176</link> <dc:creator>opyate</dc:creator> <pubDate>Wed, 20 Jan 2010 15:38:38 +0000</pubDate> <guid isPermaLink="false">http://www.mabishu.com/?p=506#comment-176</guid> <description>Hi Fran,I&#039;ve had a look at mod_memcache_cache&#039;s sources and googlecode pages, and can&#039;t find where to configure the strategy for creating the memcache key.I left a comment on the googlecode page (http://code.google.com/p/modmemcachecache/wiki/Configure) which I&#039;ll re-iterate here:-START- Please make it a function of the request URI and the Accepts header (perhaps also per-method, e.g. only cache a response when GET is used).So,memcached key = md5(URI + Accepts) memcached value = response entity body (XML or JSON representation, for example)This function will generate different keys for different response types (e.g. XML or JSON). -END-Perhaps you found the solution? I guess I have to install it and play around to deduce the answer.Thanks, Juan</description> <content:encoded><![CDATA[<p>Hi Fran,</p><p>I&#8217;ve had a look at mod_memcache_cache&#8217;s sources and googlecode pages, and can&#8217;t find where to configure the strategy for creating the memcache key.</p><p>I left a comment on the googlecode page (<a href="http://code.google.com/p/modmemcachecache/wiki/Configure" rel="nofollow">http://code.google.com/p/modmemcachecache/wiki/Configure</a>) which I&#8217;ll re-iterate here:</p><p>-START-<br /> Please make it a function of the request URI and the Accepts header (perhaps also per-method, e.g. only cache a response when GET is used).</p><p>So,</p><p>memcached key = md5(URI + Accepts) memcached value = response entity body (XML or JSON representation, for example)</p><p>This function will generate different keys for different response types (e.g. XML or JSON).<br /> -END-</p><p>Perhaps you found the solution? I guess I have to install it and play around to deduce the answer.</p><p>Thanks,<br /> Juan</p> ]]></content:encoded> </item> <item><title>By: admin</title><link>http://www.mabishu.com/blog/2009/12/08/using-memcache-server-as-apache-content-cach/comment-page-1/#comment-81</link> <dc:creator>admin</dc:creator> <pubDate>Tue, 08 Dec 2009 17:56:55 +0000</pubDate> <guid isPermaLink="false">http://www.mabishu.com/?p=506#comment-81</guid> <description>Thanks Oscar for the feedback!I&#039;ll add and fix what you are saying. But I have to say that this server config is not trivial thus &quot;only&quot; sysadmins should do this.Bye</description> <content:encoded><![CDATA[<p>Thanks Oscar for the feedback!</p><p>I&#8217;ll add and fix what you are saying. But I have to say that this server config is not trivial thus &#8220;only&#8221; sysadmins should do this.</p><p>Bye</p> ]]></content:encoded> </item> <item><title>By: Oscar</title><link>http://www.mabishu.com/blog/2009/12/08/using-memcache-server-as-apache-content-cach/comment-page-1/#comment-80</link> <dc:creator>Oscar</dc:creator> <pubDate>Tue, 08 Dec 2009 17:27:18 +0000</pubDate> <guid isPermaLink="false">http://www.mabishu.com/?p=506#comment-80</guid> <description>Despois de descargalos paquetes con wget fáltache destarealos. Xa sei que todo o mundo o debería saber, pero como o pos de corrido algún copia e pega e non se da conta</description> <content:encoded><![CDATA[<p>Despois de descargalos paquetes con wget fáltache destarealos. Xa sei que todo o mundo o debería saber, pero como o pos de corrido algún copia e pega e non se da conta</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching using memcached
Object Caching 334/352 objects using memcached

Served from: www.mabishu.com @ 2012-02-08 01:58:15 -->
