diff --git a/src/CacheKey.php b/src/CacheKey.php index 441d002..ef9aaf2 100644 --- a/src/CacheKey.php +++ b/src/CacheKey.php @@ -177,7 +177,11 @@ protected function getOtherClauses(array $where) : string $value = $this->getTypeClause($where); $value .= $this->getValuesClause($where); - return "-{$where["column"]}_{$value}"; + $column = ""; + $column .= isset($where["column"]) ? $where["column"] : ""; + $column .= isset($where["columns"]) ? implode("-", $where["columns"]) : ""; + + return "-{$column}_{$value}"; } protected function getQueryColumns(array $columns) : string @@ -231,7 +235,7 @@ protected function getTableSlug() : string protected function getTypeClause($where) : string { - $type = in_array($where["type"], ["InRaw", "In", "NotIn", "Null", "NotNull", "between", "NotInSub", "InSub", "JsonContains"]) + $type = in_array($where["type"], ["InRaw", "In", "NotIn", "Null", "NotNull", "between", "NotInSub", "InSub", "JsonContains", "Fulltext"]) ? strtolower($where["type"]) : strtolower($where["operator"]);