mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-03 01:17:56 +03:00
fixed cache usage check in ServicePool to include initial servers
This commit is contained in:
parent
2f5e8c5f53
commit
f6f7f7d7b5
@ -248,7 +248,7 @@ class ServicePool(UUIDModel, TaggingMixin):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def uses_cache(self) -> bool:
|
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
|
@property
|
||||||
def visual_name(self) -> str:
|
def visual_name(self) -> str:
|
||||||
|
Loading…
Reference in New Issue
Block a user