Skip to main content

UNKNOWN

Project description

The Cache Debug Toolbar is an add-on for Django Debug Toolbar for tracking cache usage. It currently supports the redis, pylibmc and memcache libraries.

This is definitely beta software, but I’ve found it useful in work and personal projects. Feedback welcome, patches appreciated. - Ross McFarland

Installation

  1. Install and configure Django Debug Toolbar.

  2. Add the cache_toolbar app to your INSTALLED_APPS.

  3. Import the panel corresponding to the library you’re using.

    The following must be imported in your settings.py file so that it has a chance to replace the caching library with one capable of tracking. You’ll probably want to import it in local_settings.py (if you use the pattern) or at least wrap the import line in if DEBUG:

    For redis:

    import cache_toolbar.panels.redis

    For memcache:

    import cache_toolbar.panels.memcache

    For pylibmc:

    import cache_toolbar.panels.pylibmc

Configuration

  1. Add the cache panel to DEBUG_TOOLBAR_PANELS.

    You’ll need to add the panel corresponding to the library you’ll be using to the list of debug toolbar’s panels in the order in which you’d like it to appear:

    DEBUG_TOOLBAR_PANELS = (
        ...
        'memcache_toolbar.panels.BasePanel',
    )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cache_toolbar-1.0.0.tar.gz (6.5 kB view details)

Uploaded Source

File details

Details for the file cache_toolbar-1.0.0.tar.gz.

File metadata

File hashes

Hashes for cache_toolbar-1.0.0.tar.gz
Algorithm Hash digest
SHA256 88aeb26e7c640a40a4e298e622bdc7c5d34afe21f113690bc60c5c37248296a1
MD5 bf717a21235e5d200f03c5435fa4b7fc
BLAKE2b-256 b7c9eedc8576526bc212cc98168dfb63d2cac0233dae83265add1241c233f627

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page