Skip to content

johngathure/cache_middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache Middleware for Django

Automatically caches endpoints defined in the settings file(CACHE_URLS setting). Expects a two tuple actual endpoint and the number of seconds the page should be cached for.

CACHE_URLS = [
    ('/todos/view_todos/', 60),
    ('/todos/get_todo/8521cccb-f683-4824-98f2-fa46c67526f1/', 60)

Installation

mkdir venv
cd venv
virtualenv -p /usr/bin/python2.7 .
git clone https://github.com/johngathure/cache_middleware.git
. bin/activate
cd cache_middleware
pip install -r requirements.txt
./manage.py migrate
./manage.py loaddata todos.json
./manage.py test
./manage.py runserver

About

cache middleware for django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages