{% extends "base.html" %} {% load static %} {% block title %}Permission Cache Performance Dashboard{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Permission Cache Performance Dashboard

Monitor and manage permission caching system performance

📈 Cache Performance Overview

{{ cache_stats.hit_rate_percentage|floatformat:1 }}%

Hit Rate

{{ cache_stats.total_hits|default:0 }}

Total Hits

{{ cache_stats.total_misses|default:0 }}

Total Misses

{{ cache_stats.cache_backend|default:"Unknown" }}

Backend

{% if cache_stats.redis_stats %}
Redis Statistics
Memory Used: {{ cache_stats.redis_stats.used_memory }}
Connected Clients: {{ cache_stats.redis_stats.connected_clients }}
Commands Processed: {{ cache_stats.redis_stats.total_commands_processed }}
Keyspace Hits: {{ cache_stats.redis_stats.keyspace_hits }}
{% endif %}

🛠️ Cache Management Actions

Warm Cache
{% csrf_token %}
{% csrf_token %}

Invalidate Cache
{% csrf_token %}
{% csrf_token %}

💡 Performance Recommendations

{% if recommendations %} {% for rec in recommendations %}
{{ rec.title }}

{{ rec.message }}

{% if rec.action %} Recommended Action: {{ rec.action }} {% endif %}
{% endfor %} {% else %}

No specific recommendations at this time.

{% endif %}
{% if cache_stats.session_stats %}

Current Session Statistics

{{ cache_stats.session_stats.hits }}

Session Hits

{{ cache_stats.session_stats.misses }}

Session Misses

{{ cache_stats.session_stats.invalidations }}

Session Invalidations

{{ cache_stats.session_stats.warm_operations }}

Session Warm Ops

{% endif %}

Last updated: {{ last_updated|date:"Y-m-d H:i:s" }}

{% endblock %} {% block extra_js %} {% endblock %}