Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Fixed a bad if statment that caused every EnsureCache() call to print cache doesn't exist, even though it does.

Joseph Milazzob8cd04e1dea6
diff --git a/API/Services/CacheService.cs b/API/Services/CacheService.cs
index 8e6ede340..549139fe4 100644
--- a/API/Services/CacheService.cs
+++ b/API/Services/CacheService.cs
@@ -32,7 +32,7 @@ namespace API.Services
public void EnsureCacheDirectory()
{
_logger.LogDebug("Checking if valid Cache directory: {CacheDirectory}", CacheDirectory);
- if (_directoryService.ExistOrCreate(CacheDirectory))
+ if (!_directoryService.ExistOrCreate(CacheDirectory))
{
_logger.LogError("Cache directory {CacheDirectory} is not accessible or does not exist. Creating...", CacheDirectory);
}