download_count - problems in the output

Author Message

Fátima Chapri

Saturday 07 February 2009 1:09:48 am

Hi,

Let's say that I have a pdf file and that I need to know the number of times the file has been downloaded through the "download" view of the "content" module.
For that, I used the <i>download_count</i> attribute of the ezbinaryfile.
But the point is that whenever i download a file, the output of <i>download_count</i> doesn't change.
I tried clearing the cache and refreshing the page but without success.
I can only see the changes when I close the page and re-open it again.

Do anyone knows why it happens?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 03:43:49
Script start
Timing: Jan 31 2025 03:43:49
Module start 'layout'
Timing: Jan 31 2025 03:43:49
Module start 'content'
Timing: Jan 31 2025 03:43:49
Module end 'content'
Timing: Jan 31 2025 03:43:49
Script end

Main resources:

Total runtime0.0230 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.2344151.2109
Module start 'layout' 0.00460.0034 739.4453220.6875
Module start 'content' 0.00810.0136 960.1328993.6953
Module end 'content' 0.02160.0014 1,953.828129.9922
Script end 0.0230  1,983.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002510.7763140.0002
Check MTime0.00104.4851140.0001
Mysql Total
Database connection0.00072.850810.0007
Mysqli_queries0.00239.840230.0008
Looping result0.00000.043410.0000
Template Total0.00104.110.0010
Template load0.00083.349410.0008
Template processing0.00020.751010.0002
Override
Cache load0.00052.368810.0005
General
dbfile0.00219.011680.0003
String conversion0.00000.032140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs