  if (!response.ok) {
                throw new Error(`HTTP ${response.status}: ${response.statusText}`);
            }
            
            const data = await response.json();
            hideLoading();
            
            if (data.success) {
                showSuccess('Cache cleared successfully!');
                setTimeout(() => {
                    window.location.reload();
                }, 2000);
            } else {
                showError('Error clearing cache: ' + (data.error || 'Un