{"ref":"refs/heads/master","commits":[{"author":{"name":"Frankie Dintino","email":"8d7f1aebd899ce8a567cf239f0ed6b0c009df3a1@theatlantic.com"},"sha":"aa2c8a588fa1f2f018abc0eff21515cf48e199e3","message":"Renamed CACHE_* settings, centralized in caching.settings\n\nRenamed CACHE_* settings to CACHEMACHINE_* settings; if the old values are set\nit raises a DeprecationWarning on load.","url":"https://api.github.com/repos/numan/django-cache-machine/commits/aa2c8a588fa1f2f018abc0eff21515cf48e199e3"},{"author":{"name":"Frankie Dintino","email":"8d7f1aebd899ce8a567cf239f0ed6b0c009df3a1@theatlantic.com"},"sha":"e92153699870c9d131c3841f470625f0d21b5d99","message":"Use obj._meta.db_table for object cache key, not obj._meta.__unicode__()\n\nobj._meta.__unicode__() will differ for the same object if it has\ndeferred fields. For instance, assume a model blog.models.Post. The\nobject returned from the query:\n\n    posts = Post.objects.filter(pk=1)\n\nwill have the cache key \"o:blog.post:1\".\n\nBecause django requires deferred models to be registered in the app\ncache separately, they are given a separate name, and so return a\ndifferent result when passed through unicode(). So the cache key for the\nobject returned from:\n\n    posts = Post.objects.filter(pk=1).defer(\"content\")\n\nis \"o:blog.post_deferred_content:1\".\n\nConsequently, the latter queryset will not get registered with the\nobject's flush key, and won't get cleared when the object changes.","url":"https://api.github.com/repos/numan/django-cache-machine/commits/e92153699870c9d131c3841f470625f0d21b5d99"},{"author":{"name":"Frankie Dintino","email":"8d7f1aebd899ce8a567cf239f0ed6b0c009df3a1@theatlantic.com"},"sha":"160ea9b87cda21419dcc963b9d537a3040249607","message":"Tiny tweaks to caching\n\n1. Pull in constraints on primary keys in the query and add the query's\nflush key to their flush list. So, for example, with the following query:\n\nSELECT * FROM auth_user\nLEFT JOIN blog_authors ON (...)\nLEFT JOIN blog_post ON (...)\nWHERE blog_post.id = 12345\n\nThis query's flush key would be added to the flush key of the blog post\nwith id 12345.\n\n2. Don't include objects in the model flush list which would not get\ncleared out normally by a regular invalidate. So any queries of the\nform:\n\nSELECT * FROM blog_post WHERE blog_post.id=12345\n\nWill now just be under the flush key for \"o:blog_post:12345\", and not\nalso under \"m:blog_post\".","url":"https://api.github.com/repos/numan/django-cache-machine/commits/160ea9b87cda21419dcc963b9d537a3040249607"}],"head":"160ea9b87cda21419dcc963b9d537a3040249607","size":3,"push_id":53000821}