Projet

Général

Profil

Development #6489

Backend de cache ajoutant un prefix par tenant

Ajouté par Benjamin Dauvergne il y a environ 9 ans. Mis à jour il y a plus de 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
12 février 2015
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Ceci permet aux différents tenants de ne pas se marcher sur les pieds au niveau du cache.


Fichiers

Révisions associées

Révision db9d939e (diff)
Ajouté par Benjamin Dauvergne il y a environ 9 ans

Add generic cache backend for multitenant applications

Path of the new backend is hobo.multitenant.cache.TenantCache

You can use it like this in your settings:

CACHES = {
'default': {
'BACKEND': 'hobo.multitenant.cache.TenantCache',
'REAL_BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}

Historique

#1

Mis à jour par Frédéric Péters il y a environ 9 ans

Je rajouterais un petit commentaire, genre "# dynamically create a new class with TenantBaseCache and the original class as parents", dans l'idée que cet usage de "type" n'est pas commun.

#2

Mis à jour par Thomas Noël il y a environ 9 ans

yep, et une petite touche dans le README pour dire comment ça se pose dans le settings, et tu pushes !

#3

Mis à jour par Thomas Noël il y a environ 9 ans

Voilà une version qui intègre les remarques précédentes

#4

Mis à jour par Thomas Noël il y a environ 9 ans

  • Statut changé de Nouveau à En cours
#5

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

Pousse donc mon brave.

#6

Mis à jour par Thomas Noël il y a environ 9 ans

  • Statut changé de En cours à Résolu (à déployer)
commit db9d939e093e87a8901e9ab60c670a5ab28c86d3
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Thu Feb 12 16:23:19 2015 +0100

    Add generic cache backend for multitenant applications

#7

Mis à jour par Benjamin Dauvergne il y a plus de 8 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF