Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gestioCOF
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 76
    • Issues 76
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Klub Dev ENSKlub Dev ENS
  • gestioCOF
  • Merge requests
  • !221

Configure un système de cache

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Aurélien Delobelle requested to merge aureplop/fix_cache into master Apr 10, 2017
  • Overview 5
  • Commits 8
  • Pipelines 0
  • Changes 2

Configure project to use redis as cache through django-redis-cache package.

Redis is already used by channels, so we use different redis databases:

  • Cache use db #1 of redis.
  • Channel layer use db #0 of redis (as before, but we specify this now)

Moreover, settings try getting redis connection variables from environment.

Till now, local-memory cache was used, which is the default but doesn't convenient with multiple workers because the cache is per-process.

Edited Jun 20, 2017 by Martin Pepin
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: aureplop/fix_cache