<?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: Django &#8211; sharing a memcached instance</title> <atom:link href="http://madssj.com/blog/2009/06/23/django-sharing-a-memcached-instance/feed/" rel="self" type="application/rss+xml" /><link>http://madssj.com/blog/2009/06/23/django-sharing-a-memcached-instance/</link> <description>Various articles about programming and systems administration.</description> <lastBuildDate>Sat, 11 Jun 2011 14:50:13 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Mads Sülau Jørgensen</title><link>http://madssj.com/blog/2009/06/23/django-sharing-a-memcached-instance/#comment-58</link> <dc:creator>Mads Sülau Jørgensen</dc:creator> <pubDate>Wed, 23 Mar 2011 12:08:55 +0000</pubDate> <guid
isPermaLink="false">http://swag.dk/blog/?p=135#comment-58</guid> <description>&lt;p&gt;Agreed. I&#039;ve updated the post to reflect the fact, that django 1.3 was released last night.&lt;/p&gt; </description> <content:encoded><![CDATA[<p>Agreed. I&#8217;ve updated the post to reflect the fact, that django 1.3 was released last night.</p>]]></content:encoded> </item> <item><title>By: Andrew Ash</title><link>http://madssj.com/blog/2009/06/23/django-sharing-a-memcached-instance/#comment-57</link> <dc:creator>Andrew Ash</dc:creator> <pubDate>Tue, 22 Mar 2011 20:20:02 +0000</pubDate> <guid
isPermaLink="false">http://swag.dk/blog/?p=135#comment-57</guid> <description>&lt;p&gt;The patch that Curious User linked to has been approved in Django 1.3, which should be out shortly.&lt;/p&gt;
&lt;p&gt;http://code.djangoproject.com/changeset/14623&lt;/p&gt;
&lt;p&gt;http://docs.djangoproject.com/en/dev/topics/cache/#cache-key-prefixing&lt;/p&gt; </description> <content:encoded><![CDATA[<p>The patch that Curious User linked to has been approved in Django 1.3, which should be out shortly.</p><p><a
href="http://code.djangoproject.com/changeset/14623" rel="nofollow">http://code.djangoproject.com/changeset/14623</a></p><p><a
href="http://docs.djangoproject.com/en/dev/topics/cache/#cache-key-prefixing" rel="nofollow">http://docs.djangoproject.com/en/dev/topics/cache/#cache-key-prefixing</a></p>]]></content:encoded> </item> <item><title>By: Mads Sülau Jørgensen</title><link>http://madssj.com/blog/2009/06/23/django-sharing-a-memcached-instance/#comment-56</link> <dc:creator>Mads Sülau Jørgensen</dc:creator> <pubDate>Thu, 01 Jul 2010 10:33:27 +0000</pubDate> <guid
isPermaLink="false">http://swag.dk/blog/?p=135#comment-56</guid> <description>&lt;p&gt;Oh, that&#039;s even better!&lt;/p&gt;
&lt;p&gt;I&#039;ll stick it in the post, thanks again :)&lt;/p&gt; </description> <content:encoded><![CDATA[<p>Oh, that&#8217;s even better!</p><p>I&#8217;ll stick it in the post, thanks again :)</p>]]></content:encoded> </item> <item><title>By: Curious User</title><link>http://madssj.com/blog/2009/06/23/django-sharing-a-memcached-instance/#comment-55</link> <dc:creator>Curious User</dc:creator> <pubDate>Thu, 01 Jul 2010 10:31:30 +0000</pubDate> <guid
isPermaLink="false">http://swag.dk/blog/?p=135#comment-55</guid> <description>&lt;p&gt;Thanks for your quick reply!&lt;/p&gt;
&lt;p&gt;Note a patch has been submitted: http://code.djangoproject.com/ticket/13795&lt;/p&gt; </description> <content:encoded><![CDATA[<p>Thanks for your quick reply!</p><p>Note a patch has been submitted: <a
href="http://code.djangoproject.com/ticket/13795" rel="nofollow">http://code.djangoproject.com/ticket/13795</a></p>]]></content:encoded> </item> <item><title>By: Mads Sülau Jørgensen</title><link>http://madssj.com/blog/2009/06/23/django-sharing-a-memcached-instance/#comment-54</link> <dc:creator>Mads Sülau Jørgensen</dc:creator> <pubDate>Thu, 01 Jul 2010 10:26:36 +0000</pubDate> <guid
isPermaLink="false">http://swag.dk/blog/?p=135#comment-54</guid> <description>&lt;p&gt;If you set &lt;code&gt;CACHE_MIDDLEWARE_KEY_PREFIX&lt;/code&gt; and use the &lt;code&gt;memcached_key_prefix&lt;/code&gt; cache backend, both will add a key to the cache key.&lt;/p&gt;
&lt;p&gt;So, if the &lt;code&gt;CacheMiddleware&lt;/code&gt; were to insert a key called &lt;code&gt;frontpage&lt;/code&gt;, it would then prefix it with the above setting, and pass it along to the cache backend, which then again prefixes the key. You then end up with a key called &lt;code&gt;CACHE_MIDDLEWARE_KEY_PREFIX + cache_backend_prefix + cache_key&lt;/code&gt; which is suboptimal.&lt;/p&gt; </description> <content:encoded><![CDATA[<p>If you set <code>CACHE_MIDDLEWARE_KEY_PREFIX</code> and use the <code>memcached_key_prefix</code> cache backend, both will add a key to the cache key.</p><p>So, if the <code>CacheMiddleware</code> were to insert a key called <code>frontpage</code>, it would then prefix it with the above setting, and pass it along to the cache backend, which then again prefixes the key. You then end up with a key called <code>CACHE_MIDDLEWARE_KEY_PREFIX + cache_backend_prefix + cache_key</code> which is suboptimal.</p>]]></content:encoded> </item> <item><title>By: Curious User</title><link>http://madssj.com/blog/2009/06/23/django-sharing-a-memcached-instance/#comment-53</link> <dc:creator>Curious User</dc:creator> <pubDate>Thu, 01 Jul 2010 10:00:15 +0000</pubDate> <guid
isPermaLink="false">http://swag.dk/blog/?p=135#comment-53</guid> <description>&lt;p&gt;Please explain &quot;kind of conflict&quot;.&lt;/p&gt;
&lt;p&gt;I appreciate you taking the time to post this, as have countless other non-commenters.&lt;/p&gt; </description> <content:encoded><![CDATA[<p>Please explain &#8220;kind of conflict&#8221;.</p><p>I appreciate you taking the time to post this, as have countless other non-commenters.</p>]]></content:encoded> </item> <item><title>By: Mads Sülau Jørgensen</title><link>http://madssj.com/blog/2009/06/23/django-sharing-a-memcached-instance/#comment-52</link> <dc:creator>Mads Sülau Jørgensen</dc:creator> <pubDate>Mon, 13 Jul 2009 08:04:39 +0000</pubDate> <guid
isPermaLink="false">http://swag.dk/blog/?p=135#comment-52</guid> <description>&lt;p&gt;Nope, that setting is only used in the cache middleware.&lt;/p&gt;
&lt;p&gt;The above solution is for the &lt;code&gt;cache&lt;/code&gt; layer in general, so it will actually kind of conflict with the &lt;code&gt;CACHE_MIDDLEWARE_KEY_PREFIX&lt;/code&gt;.&lt;/p&gt; </description> <content:encoded><![CDATA[<p>Nope, that setting is only used in the cache middleware.</p><p>The above solution is for the <code>cache</code> layer in general, so it will actually kind of conflict with the <code>CACHE_MIDDLEWARE_KEY_PREFIX</code>.</p>]]></content:encoded> </item> <item><title>By: jjjj</title><link>http://madssj.com/blog/2009/06/23/django-sharing-a-memcached-instance/#comment-51</link> <dc:creator>jjjj</dc:creator> <pubDate>Sun, 12 Jul 2009 16:17:35 +0000</pubDate> <guid
isPermaLink="false">http://swag.dk/blog/?p=135#comment-51</guid> <description>&lt;p&gt;http://docs.djangoproject.com/en/dev/ref/settings/#cache-middleware-key-prefix&lt;/p&gt;
&lt;p&gt;wouldn&#039;t this just work?&lt;/p&gt; </description> <content:encoded><![CDATA[<p><a
href="http://docs.djangoproject.com/en/dev/ref/settings/#cache-middleware-key-prefix" rel="nofollow">http://docs.djangoproject.com/en/dev/ref/settings/#cache-middleware-key-prefix</a></p><p>wouldn&#8217;t this just work?</p>]]></content:encoded> </item> </channel> </rss>
