protected function getGeneralCacheKey()
{
if ($this->generalCacheKey) {
return $this->generalCacheKey;
}
$key = [__CLASS__, $this->name, $this->sqlBuilder->getConditions()];
$trace = [];
foreach (debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS) as $item) {
$trace[] = isset($item['file'], $item['line']) ? $item['file'] . $item['line'] : NULL;
}
$key[] = $trace;
return $this->generalCacheKey = md5(serialize($key));
}