| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function getKpi(Cache $cache) |
||
| 30 | { |
||
| 31 | $queryValues = [ |
||
| 32 | 'SELECT' => 'AVG(t_getAfter.timestamp - t_get.timestamp) as selection_time', |
||
| 33 | 'FROM' => 'tx_cachecheck_domain_model_log t_get, tx_cachecheck_domain_model_log t_getAfter', |
||
| 34 | 'WHERE' => "t_get.cache_name = '" . $cache->getName() . "' AND t_get.called_method = 'get' AND t_getAfter.cache_name = '" . $cache->getName() . "' AND t_getAfter.called_method = 'getAfter' AND t_get.request_hash = t_getAfter.request_hash AND t_get.entry_identifier = t_getAfter.entry_identifier AND t_get.uid < t_getAfter.uid", |
||
| 35 | ]; |
||
| 36 | return (float)$this->getDynamicFromDatabase($queryValues); |
||
| 37 | } |
||
| 38 | |||
| 51 |