Active
Project:
Statistics
Version:
1.0.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2012 at 20:53 UTC
Updated:
2 Dec 2024 at 11:05 UTC
Jump to comment: Most recent
Currently doing work on an alternative DB-based cache backend for Drupal that increases cache hit rate, but finding it hard to get any reliable metrics on it. Would be handy to keep track of this in accesslog.
Maybe a -1 meaning "not intended to be cached" (e.g. logged in user or page cache is disabled), 0 for cache miss, 1 for cache hit.
Needs an extra column in accesslog for "cachehit," and an extra line in statistics_exit(). Is the X-Drupal-Cache header reliable enough to use for this?
Would also be lovely to backport to 7.x.
Comments
Comment #1
iamEAP commentedClosing my own issue. Accesslog was removed from core Statistics #1446956: Remove the accesslog from statistics
For those keeping score at home, this was what originally inspired the Better Statistics module, which implements this very feature.
Comment #2
fgmQuestionable whether we can find a way to do this in newer versions, because of the 2-step loading, but moving to contrib just to keep it in mind.
Comment #3
anybody