fix: enable cache by default and skip caching empty castopod results

This commit is contained in:
2026-07-24 20:55:35 +04:00
parent 9cf7487f24
commit 576a72a0e1
3 changed files with 10 additions and 7 deletions
+3 -1
View File
@@ -100,7 +100,9 @@ define('ENABLE_SEARCH', true);
if (!defined('ENABLE_USER_ACCOUNTS')) define('ENABLE_USER_ACCOUNTS', false);
// Cache
if (!defined('CACHE_ENABLED')) define('CACHE_ENABLED', false);
// Activé par défaut : indispensable pour Castopod (rate limit strict sur les
// flux RSS) et Funkwhale. Sans cache, une requête part à chaque chargement.
if (!defined('CACHE_ENABLED')) define('CACHE_ENABLED', true);
if (!defined('CACHE_DURATION')) define('CACHE_DURATION', 3600); // En secondes (1 heure)
// =========================================