I have code like this one:
<?php
$block = Blocks::findFirst([
'conditions' => 'bn = ?0 AND siteid = ?1',
'bind' => [$bn, $sid],
'cache' => ['key' => "{$sid}-{$bn}",],
]);
This block throws an exception if memcached fails. The point is that $block is false w\o mysql query. I have to try-catch for all such queries and repeat Blocks::findFirst w\o cache option. Are there any simpler ways to deal with memcache errors.