update
This commit is contained in:
parent
2026e0fbfb
commit
bec32b4df2
@ -21,8 +21,10 @@ def _get_redis_client() -> Optional[redis.Redis]:
|
|||||||
logger.info("✅ Redis connection established")
|
logger.info("✅ Redis connection established")
|
||||||
return _redis_client
|
return _redis_client
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning(f"⚠️ Redis connection failed: {e}")
|
# Only log once per application startup
|
||||||
logger.warning("📝 Pagination will be disabled - posts may be duplicated")
|
if _redis_client is None: # First failure
|
||||||
|
logger.warning(f"⚠️ Redis connection failed: {e}")
|
||||||
|
logger.warning("📝 Pagination will be disabled - posts may be duplicated")
|
||||||
_redis_client = None
|
_redis_client = None
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user