Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pelletier/django-verbosecache

A dummy cache backend for Django, but verbose
https://github.com/pelletier/django-verbosecache

Last synced: about 1 month ago
JSON representation

A dummy cache backend for Django, but verbose

Awesome Lists containing this project

README

        

# django-verbosecache

`django-verbosecache` is a dummy cache backend for Django, but verbose. It
will just print which methods of the backend are called, and the provided
arguments.

## Set up

Copy the `verbose_cache.py` file in the root of your Django project (for
example), and ajust your settings:

CACHES = {
'default': {
'BACKEND': 'verbose_cache.VerboseCache',
}
}

## Example output

[CACHE] get called with:
(,
'views.decorators.cache.cache_header..6666cd76f96956469e7be39d750cc7d9.en-us.notmobile',
None)
{}
Output: None