Skip to main content

A simple caching for sql query

Project description

=====
SQL Cache
=====

SQL Cache is a simple Django Middleware to prevent execute the same sql query in one request.

Quick start
-----------

1. Go to your project directory

2. Install sql cache

python directory_to_sql_cache/setup.py install

3. Add "sql_cache" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = (
...
'sql_cache',
)

4. Add "django_sql_cache.middleware.QueryCacheMiddleware" to your MIDDLEWARE_CLASSES
MIDDLEWARE_CLASSES = (
...
'sql_cache.middleware.QueryCacheMiddleware',
)

Project details


Release history Release notifications | RSS feed

This version

0.1

Supported by

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