DataTypeSqlQuery: disable buggy cache

This commit is contained in:
Thomas Gelf 2015-08-29 01:08:45 +02:00
parent ce0a982821
commit ff80463d76

View File

@ -39,10 +39,11 @@ class DataTypeSqlQuery extends DataTypeHook
protected function fetchData() 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::$cachedResult = $this->db()->fetchPairs($this->settings['query']);
self::$cacheTime = time(); self::$cacheTime = time();
} // }
return self::$cachedResult; return self::$cachedResult;
} }