```php
if ($this->cacheLogger) {
    if ($result) {
        $this->cacheLogger->queryCacheMiss($this->regionName, $querykey); 
    }

    if ($cached) {
        $this->cacheLogger->queryCachePut($this->regionName, $querykey); 
    }
}
```