{ "info": { "author": "Bertrand Mathieu", "author_email": "bert.mathieu@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Topic :: Internet :: Proxy Servers" ], "description": "=================\ndjango-cachepurge\n=================\n\n.. contents::\n\nWhat is it?\n===========\n\nThis package allows django to purge HTTP cache when a model instance is changed\nor deleted. It does this by sending \"PURGE\" requests to one or more upstream\nHTTP cache (such as Squid or Varnish). This is inspired by Plone CacheFu\ncomponents.\n\nUsage\n=====\n\nIn settings.py put 'django_cachepurge' before any other application; else it may\nfail to register some models::\n\n INSTALLED_APPS = (\n 'django_cachepurge',\n ...\n )\n\nAdd the middleware::\n\n MIDDLEWARE_CLASSES = (\n ...\n 'django_cachepurge.middleware.CachePurge',\n )\n\nDefine CACHE_URLS::\n\n CACHE_URLS = 'http://127.0.0.1:3128'\n\nor if you have more than one cache::\n \n CACHE_URLS = ('http://127.0.0.1:3128',\n 'http://192.168.1.42:3128')\n\nModels\n------\n\nUrls are extracted from models instances on post_save signal. Two sources are\nused:\n\n - instance.get_absolute_url(), if it exists\n - instance.get_purge_urls(), if it exists. The application expects a list of\n absolute paths similar to what is provided by get_absolute_url().\n\nPurge request is sent when response has been computed: if an exception occurs\nthe urls are not purged. Purge requests are asynchronous: worker threads handle\nthat so that we don't have wait to complete all requests before returning the\nresponse.\n\nCache configuration\n-------------------\n\nThe cache must be configured to accept and handle \"PURGE\" requests from the\nserver where the django application is hosted.\n\nHomepage, code, bug tracker\n---------------------------\n\n- Homepage: http://launchpad.net/django-cachepurge\n- Code repository: http://code.launchpad.net/django-cachepurge\n- Report bugs at http://bugs.launchpad.net/django-cachepurge\n\n\nContributors\n============\n\nBertrand Mathieu, Author\n\nChange history\n==============\n\n0.3 - 2011-04-01\n----------------\n\n - Compatible with Django 1.3: don't import django.utils.thread_support\n\n - catch NoReverseMatch exception when trying to find an instance's url\n\n0.2 - 2010-11-22\n----------------\n\n - Accept to purge only site urls, converted if needed into their relative form\n (i.e, \"/some/path/\")\n\n0.1a - 2009-05-25\n-----------------\n\n - 0.1a: 0.1 released missed some files\n - Initial release\n\nDownload\n========", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://launchpad.net/django-cachepurge", "keywords": "django cache squid varnish", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "django-cachepurge", "package_url": "https://pypi.org/project/django-cachepurge/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-cachepurge/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://launchpad.net/django-cachepurge" }, "release_url": "https://pypi.org/project/django-cachepurge/0.3/", "requires_dist": null, "requires_python": null, "summary": "Django Middleware and utilities that send \"PURGE\" request to an upstream cache", "version": "0.3" }, "last_serial": 709083, "releases": { "0.1a": [ { "comment_text": "", "digests": { "md5": "b86ba6d2fabf565c115a86ad2845b5e8", "sha256": "9ccc3d3476550567529c8a64bbea7ad82fa9e80fa9fa45780eeba7dd00baf1e7" }, "downloads": -1, "filename": "django-cachepurge-0.1a.tar.gz", "has_sig": false, "md5_digest": "b86ba6d2fabf565c115a86ad2845b5e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9466, "upload_time": "2009-05-25T16:33:30", "url": "https://files.pythonhosted.org/packages/f8/dd/876e1560f07420704138941164fdf868e4be15bf0fa6edfe424980d83d72/django-cachepurge-0.1a.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "b796c61ccfbb3d685b7c5e931b59fd84", "sha256": "830d223d30ce6ceb7141f875bf0496416487e45e75097fe4198999ea76331df6" }, "downloads": -1, "filename": "django-cachepurge-0.2.tar.gz", "has_sig": false, "md5_digest": "b796c61ccfbb3d685b7c5e931b59fd84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9854, "upload_time": "2010-11-22T14:18:40", "url": "https://files.pythonhosted.org/packages/de/45/061b3d1fc58999b93921d3f9e9a65d628978ced9312e2a12ffab0409d67d/django-cachepurge-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "177ec80438477a41cd5951c10be765b9", "sha256": "687b53cecb90dff45861ea022a193f691c04c4065c4e885179a44e7b4f1e4301" }, "downloads": -1, "filename": "django-cachepurge-0.3.tar.gz", "has_sig": false, "md5_digest": "177ec80438477a41cd5951c10be765b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9977, "upload_time": "2011-04-01T15:04:23", "url": "https://files.pythonhosted.org/packages/02/db/6ae104f7ca883ecb381827cd85345261bb2f0b1de4eaaddefe23a07e3b8a/django-cachepurge-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "177ec80438477a41cd5951c10be765b9", "sha256": "687b53cecb90dff45861ea022a193f691c04c4065c4e885179a44e7b4f1e4301" }, "downloads": -1, "filename": "django-cachepurge-0.3.tar.gz", "has_sig": false, "md5_digest": "177ec80438477a41cd5951c10be765b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9977, "upload_time": "2011-04-01T15:04:23", "url": "https://files.pythonhosted.org/packages/02/db/6ae104f7ca883ecb381827cd85345261bb2f0b1de4eaaddefe23a07e3b8a/django-cachepurge-0.3.tar.gz" } ] }