mpchadwick / Mpchadwick_PageCacheHitRate

Monitor your Magento site's Page Cache Hit Rate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix partials being represented as misses (in some cases)

mpchadwick opened this issue · comments

We can still have a partial hit even without any containers that need additional processing. This can happen here

$sessionInfo = Enterprise_PageCache_Model_Cache::getCacheInstance()->load($this->getSessionInfoCacheId());

if ($sessionInfo) {
    // Handle session info 
} else {
    // This will be a partial. There don't need to be containers for this to happen
    $isProcessed = false;
}

Probably a better approach is to check if the request is being handled by pagecache/request/process.

Fixed by f53ffa4