Count memcache/apc debug lines

pull/247/merge
Aleksander Machniak 10 years ago
parent fff8e0f2ae
commit 9ed8584c3e

@ -666,7 +666,7 @@ class rcube_cache
*/
private function debug($type, $key, $data = null, $result = null)
{
$line = strtoupper($type) . ' ' . $key;
$line = '[' . (++$this->debug_count) . '] ' . strtoupper($type) . ' ' . $key;
if ($data !== null) {
$line .= ' ' . ($this->packed ? $data : serialize($data));

@ -655,7 +655,7 @@ class rcube_cache_shared
*/
private function debug($type, $key, $data = null, $result = null)
{
$line = strtoupper($type) . ' ' . $key;
$line = '[' . (++$this->debug_count) . '] ' . strtoupper($type) . ' ' . $key;
if ($data !== null) {
$line .= ' ' . ($this->packed ? $data : serialize($data));

Loading…
Cancel
Save