- try:
- cache_opt = self.api.config.PLC_GETSLIVERS_CACHE
- with AttributeError:
- cache_opt = False
-
- if (cache_opt):
- return self.cacheable_call(auth, node_id_or_hostname)
- else:
- return self.raw_call(auth, node_id_or_hostname)
-
- @cached(7200)
- def cacheable_call(self, auth, node_id_or_hostname):