known error'));
            }
        } catch (error) {
            hideLoading();
            showError('Error clearing cache: ' + error.message);
        }
    }

    async function performMaintenance() {
        const adminKey = '{{ admin_key }}';
        if (!adminKey) {
            showError('Admin key is missing. Please refresh the page.');
            return;
        }
        
        showLoading('Performing database maintenance...');
        
        try {
            const response = await fetch(`