Chore: cache Github version check for 15 minutes (#11235)

This commit is contained in:
shamoon
2025-10-30 13:53:30 -07:00
committed by GitHub
parent 6b55740f56
commit b9aced07fb
2 changed files with 6 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ from django.utils.timezone import make_aware
from django.utils.translation import get_language
from django.views import View
from django.views.decorators.cache import cache_control
from django.views.decorators.cache import cache_page
from django.views.decorators.http import condition
from django.views.decorators.http import last_modified
from django.views.generic import TemplateView
@@ -2402,6 +2403,7 @@ class UiSettingsView(GenericAPIView):
)
@method_decorator(cache_page(60 * 15), name="dispatch")
@extend_schema_view(
get=extend_schema(
description="Get the current version of the Paperless-NGX server",