diff --git a/src/RethinkDB.DistributedCache/DistributedRethinkDBCache.fs b/src/RethinkDB.DistributedCache/DistributedRethinkDBCache.fs index d31b14c..b544536 100644 --- a/src/RethinkDB.DistributedCache/DistributedRethinkDBCache.fs +++ b/src/RethinkDB.DistributedCache/DistributedRethinkDBCache.fs @@ -67,11 +67,8 @@ type DistributedRethinkDBCache (options : IOptions "Skipping environment check because it has already been performed" - return () dbug <| fun () -> "|> Checking for proper RethinkDB cache environment" // Database match db with @@ -109,6 +106,14 @@ type DistributedRethinkDBCache (options : IOptions dbug <| fun () -> "Skipping environment check because it has already been performed" + | false -> do! environmentCheck cnxToken + } + /// Remove entries from the cache that are expired let purgeExpired (_ : CancellationToken) = backgroundTask {