1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-21 09:34:08 +03:00

fixed cache usage check in ServicePool to include initial servers

This commit is contained in:
Adolfo Gómez García 2024-12-04 15:58:06 +01:00
parent 2f5e8c5f53
commit f6f7f7d7b5
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -248,7 +248,7 @@ class ServicePool(UUIDModel, TaggingMixin):
@property
def uses_cache(self) -> bool:
return self.cache_l1_srvs > 0 or self.cache_l2_srvs > 0
return self.cache_l1_srvs > 0 or self.cache_l2_srvs > 0 or self.initial_srvs > 0
@property
def visual_name(self) -> str: