fixed Tag::update_cache()
This commit is contained in:
parent
037393a237
commit
2183fa9186
@ -9,7 +9,7 @@ trait CacheMethods
|
||||
protected function update_cache()
|
||||
{
|
||||
# iTODO: hash keys
|
||||
Rails::cache()->write('tag_type_' . $this->name, self::type_name_from_value($this->tag_type));
|
||||
Rails::cache()->write('tag_type.' . $this->name, self::type_name_from_value($this->tag_type));
|
||||
|
||||
# Expire the tag cache if a tag's type changes.
|
||||
if ($this->tag_type != $this->tagTypeWas()) {
|
||||
|
Reference in New Issue
Block a user