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.
C# annotationscbzcomicinfocomicscomics-readercross-platformcsharpepubepub-readerfreelinuxmangamedia-servermetadataopdsopds-feedpdfself-hostedubooquitywindows
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.csindex 8e6ede340..549139fe4 100644--- a/API/Services/CacheService.cs+++ b/API/Services/CacheService.cs@@ -32,7 +32,7 @@ namespace API.Servicespublic 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);}