Limit the amount of transformations inside the cache storage

This commit is contained in:
Felipe Zimmerle
2015-11-04 16:20:31 -03:00
parent 5bef19aa4d
commit 45638ccc91
6 changed files with 21 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ std::string HtmlEntityDecode::evaluate(std::string value,
ret.assign(tmp);
free(tmp);
HtmlEntityDecodeInstantCache::getInstance().emplace(value, ret);
HtmlEntityDecodeInstantCache::getInstance().cache(value, ret);
return ret;
}