From 4ce6218ba05fa4fbef02d35438fce9e7e2c928c7 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Mon, 23 Sep 2013 10:24:29 +1000 Subject: [PATCH] Some APC libraries/versions do stuff differently. --- templates/mod/debug/apc.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/mod/debug/apc.html b/templates/mod/debug/apc.html index 0aa05e9f..f3c0bde7 100644 --- a/templates/mod/debug/apc.html +++ b/templates/mod/debug/apc.html @@ -8,10 +8,10 @@ {% for var in cached_vars %} - {% if var.key %}{{ var.key }}{% else %}{{ var.info }}{% endif %} - {{ var.num_hits }} - {{ var.creation_time|ago }} ago - {{ (var.creation_time + var.ttl)|until }} (ttl: {{ (time() + var.ttl)|until }}) + {{ var.key ? var.key : var.info }} + {{ var.nhits ? var.nhits : var.num_hits }} + {{ (var.ctime ? var.ctime : var.creation_time)|ago }} ago + {{ ((var.ctime ? var.ctime : var.creation_time) + var.ttl)|until }} (ttl: {{ (time() + var.ttl)|until }}) {{ var.mem_size }} bytes {% endfor %}