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',
)
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',
)