make cache table name into a valid postgres identifier for notifications

This commit is contained in:
Shish 2023-12-14 17:21:41 +00:00 committed by Shish
parent 7f98412d8b
commit d8a7ac985d

View file

@ -278,7 +278,7 @@ class DatabaseConfig extends BaseConfig
$this->table_name = $table_name;
$this->sub_value = $sub_value;
$this->sub_column = $sub_column;
$this->cache_name = empty($sub_value) ? "config" : "config_{$sub_column}={$sub_value}";
$this->cache_name = empty($sub_value) ? "config" : "config_{$sub_column}_{$sub_value}";
$this->values = cache_get_or_set($this->cache_name, fn () => $this->get_values());
}