1 # -*- coding: utf-8 -*-
2 # This file is part of django-ssify, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See README.md for more information.
5 from __future__ import unicode_literals
6 from django.core.cache import get_cache
7 from ssify import INCLUDES_CACHES
10 includes_caches = [get_cache(c) for c in INCLUDES_CACHES]
13 def cache_include(path, content):
14 for cache in includes_caches:
15 cache.set(path, content)