{ "info": { "author": "Randall Degges", "author_email": "rdegges@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# django-clear-cache\n\n\n![I don't always clear my cache...](https://github.com/rdegges/django-clear-cache/raw/master/clear_cache.jpg)\n\n\nI often find myself in situations where I need to fully clear my website's\ncache (memcached or whatever). Often times this is required because:\n\n- I'm deploying new code and it will fail to run properly with my currently\n cached objects.\n- I need to purge invalid (or old) information.\n- A *million* other reasons.\n\nThe standard way to clear your cache is to open up a management shell, eg:\n\n``` bash\n$ python manage.py shell\nPython 2.7.3 (default, Apr 20 2012, 22:39:59) \n[GCC 4.6.3] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n(InteractiveConsole)\n>>> from django.core.cache import cache\n>>> cache.clear()\n```\n\nBut obviously, this is annoying as I have to manually log into my production\nshell.\n\n``django-clear-cache`` makes this process as easy as running a single\nmanagement command.\n\n\n## Install\n\nTo install ``django-clear-cache``, simply run ``pip install django-clear-cache``\nand you'll get the latest version installed automatically.\n\nNext, modify your Django ``settings.py`` file, and add ``clear_cache`` to your\n``INSTALLED_APPS`` setting:\n\n``` python\nINSTALLED_APPS = (\n # ...\n 'clear_cache',\n)\n```\n\n## Usage\n\nTo clear your cache, simply run the ``clear_cache`` management command:\n\n``` bash\n$ python manage.py clear_cache\nYour cache has been cleared!\n```\n\n**NOTE**: This will only (obviously) work if you've got a cache configured (eg:\nmemcached, local memory, etc.). If you have no idea what I'm talking about,\nread through the [official Django caching docs](https://docs.djangoproject.com/en/dev/topics/cache/?from=olddocs).\n\n\n## Tests\n\n[![Build Status](https://secure.travis-ci.org/rdegges/django-clear-cache.png?branch=master)](http://travis-ci.org/rdegges/django-clear-cache)\n\nWant to run the tests? No problem:\n\n``` bash\n$ git clone git://github.com/rdegges/django-clear-cache.git\n$ cd django-clear-cache\n$ python setup.py develop\n...\n$ python manage.py test clear_cache\nCreating test database for alias 'default'...\n.Your cache has been cleared!\n..\n----------------------------------------------------------------------\nRan 3 tests in 1.007s\n\nOK\nDestroying test database for alias 'default'...\n```", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rdegges/django-clear-cache", "keywords": "django cache management memcached clear", "license": "UNLICENSE", "maintainer": null, "maintainer_email": null, "name": "django-clear-cache", "package_url": "https://pypi.org/project/django-clear-cache/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-clear-cache/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rdegges/django-clear-cache" }, "release_url": "https://pypi.org/project/django-clear-cache/0.3/", "requires_dist": null, "requires_python": null, "summary": "A simple Django management command which clears your cache.", "version": "0.3" }, "last_serial": 789300, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "163e7eeb3371a9584cb8527bd6b5e174", "sha256": "8b2724c25fbcf16aeacd6c7b01cc72d2bbf0dd16bb152db120c8fc07af17d3dd" }, "downloads": -1, "filename": "django-clear-cache-0.1.tar.gz", "has_sig": false, "md5_digest": "163e7eeb3371a9584cb8527bd6b5e174", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 163110, "upload_time": "2012-04-29T02:47:33", "url": "https://files.pythonhosted.org/packages/5b/fd/c04a87dedf55bce37bd312e85748db5e108aa170b6c3e708488b088dce72/django-clear-cache-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "97b9caecd9f2b646fa7825a88842d8d6", "sha256": "c6196e93ddb5d762605e870f8c2b2ee8c5d326ad5d608c9a796427decfd17c3d" }, "downloads": -1, "filename": "django-clear-cache-0.2.tar.gz", "has_sig": false, "md5_digest": "97b9caecd9f2b646fa7825a88842d8d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 163714, "upload_time": "2012-04-29T21:54:22", "url": "https://files.pythonhosted.org/packages/c0/b7/947eda80f93d01613e4fedff0a83b171cab423140f55faaae3de8a3d6a70/django-clear-cache-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "c093e365bc39d0fbc6b5919922fe9825", "sha256": "fc9d27d6d7dd143917393484236bdf66a109d99bc64a4418cdf5a1127356d766" }, "downloads": -1, "filename": "django-clear-cache-0.3.tar.gz", "has_sig": false, "md5_digest": "c093e365bc39d0fbc6b5919922fe9825", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 162262, "upload_time": "2012-10-18T03:08:27", "url": "https://files.pythonhosted.org/packages/5b/01/3c471e142ee9327b86898a2e62964aa5727c5044ce208177df8b33f3fad1/django-clear-cache-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c093e365bc39d0fbc6b5919922fe9825", "sha256": "fc9d27d6d7dd143917393484236bdf66a109d99bc64a4418cdf5a1127356d766" }, "downloads": -1, "filename": "django-clear-cache-0.3.tar.gz", "has_sig": false, "md5_digest": "c093e365bc39d0fbc6b5919922fe9825", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 162262, "upload_time": "2012-10-18T03:08:27", "url": "https://files.pythonhosted.org/packages/5b/01/3c471e142ee9327b86898a2e62964aa5727c5044ce208177df8b33f3fad1/django-clear-cache-0.3.tar.gz" } ] }