Skip to content
Snippets Groups Projects
Commit 7c4062c2 authored by Jenkins for Software Heritage's avatar Jenkins for Software Heritage
Browse files

Update upstream source from tag 'debian/upstream/1.3.2'

Update to upstream version '1.3.2'
with Debian dir 64f8367f56017bb21e6670aa951456a0ee46422d
parents fd0fbf8d e264ca8e
No related branches found
No related tags found
Loading
Metadata-Version: 2.1
Name: swh.deposit
Version: 1.3.1
Version: 1.3.2
Summary: Software Heritage Deposit Server
Home-page: https://forge.softwareheritage.org/source/swh-deposit/
Author: Software Heritage developers
......
Metadata-Version: 2.1
Name: swh.deposit
Version: 1.3.1
Version: 1.3.2
Summary: Software Heritage Deposit Server
Home-page: https://forge.softwareheritage.org/source/swh-deposit/
Author: Software Heritage developers
......
# Copyright (C) 2017-2021 The Software Heritage developers
# Copyright (C) 2017-2023 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
import os
import django
from swh.core import config
from .common import * # noqa
......@@ -100,10 +102,13 @@ if authentication == "keycloak":
# Optional cache server
server_cache = conf.get("cache_uri")
if server_cache:
cache_backend = "django.core.cache.backends.memcached.MemcachedCache"
if django.VERSION[:2] >= (3, 2):
cache_backend = "django.core.cache.backends.memcached.PyMemcacheCache"
CACHES.update(
{
"default": {
"BACKEND": "django.core.cache.backends.memcached.MemcachedCache",
"BACKEND": cache_backend,
"LOCATION": server_cache,
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment