DataTypeSqlQuery: disable buggy cache

This commit is contained in:
Thomas Gelf 2015-08-29 01:08:45 +02:00
parent ce0a982821
commit ff80463d76
1 changed files with 3 additions and 2 deletions

View File

@ -39,10 +39,11 @@ class DataTypeSqlQuery extends DataTypeHook
protected function fetchData()
{
if (self::$cachedResult === null || (time() - self::$cacheTime > 3)) {
// TODO: Hash _:)
//if (self::$cachedResult === null || (time() - self::$cacheTime > 3)) {
self::$cachedResult = $this->db()->fetchPairs($this->settings['query']);
self::$cacheTime = time();
}
// }
return self::$cachedResult;
}