about_stats_service

About-page usage metrics aggregation.

This module stores a persistent cache in the Django database so /api/about-stats/ can serve quickly without rescanning output CSV files on every request.

Module Contents

about_stats_service.mark_about_stats_cache_stale() None

Mark cache stale so next refresh recomputes payload.

about_stats_service.refresh_about_stats_cache(*, force: bool = False) dict[str, Any]

Refresh and persist About stats cache.

If force=False and cache is fresh, return cached payload as-is.

about_stats_service.get_about_stats() dict[str, Any]

Return cached About stats, recomputing only when stale/missing.