| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function getKpi(Cache $cache) |
||
| 29 | { |
||
| 30 | $queryValues = [ |
||
| 31 | 'SELECT' => 'AVG(t_set.timestamp - t_has.timestamp) as creation_time', |
||
| 32 | 'FROM' => 'tx_cachecheck_domain_model_log t_has, tx_cachecheck_domain_model_log t_set', |
||
| 33 | 'WHERE' => "t_has.cache_name = '" . $cache->getName() . "' AND t_has.called_method = 'has' AND t_set.cache_name = '" . $cache->getName() . "' AND t_set.called_method = 'set' AND t_set.entry_size > 0 AND t_has.request_hash = t_set.request_hash AND t_has.entry_identifier = t_set.entry_identifier AND t_has.uid < t_set.uid", |
||
| 34 | ]; |
||
| 35 | return (float)$this->getDynamicFromDatabase($queryValues); |
||
| 36 | } |
||
| 37 | |||
| 50 |