fixed Tag::update_cache()

This commit is contained in:
Parziphal 2013-11-03 11:11:29 -05:00
parent 037393a237
commit 2183fa9186

View File

@ -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()) {