Enhanced download count functionality.

Author Message

Daniel Guerrier

Saturday 24 September 2005 7:58:57 pm

Has anyone ever come up with a practical way of keeping track of how many times a file that is part of content class was downloaded regardless of the version. I know the actual file has a download count, but it is extremly limited in its usefulness. I want to sort content classes instances according to how many times the file attibute with in it was downloaded. I also wanted to report how many times the file was downloaded on a daily basis. In other words, display that this file was downloaded ten times today.

I know someone will say you can create some sort of module, but is it possible to go one step further and provide some insite and as to where to begin.

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 18 2025 19:05:12
Script start
Timing: Jan 18 2025 19:05:12
Module start 'layout'
Timing: Jan 18 2025 19:05:12
Module start 'content'
Timing: Jan 18 2025 19:05:12
Module end 'content'
Timing: Jan 18 2025 19:05:12
Script end

Main resources:

Total runtime0.0166 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1484152.6406
Module start 'layout' 0.00630.0031 741.789139.4766
Module start 'content' 0.00940.0050 781.265685.1328
Module end 'content' 0.01440.0021 866.398430.3047
Script end 0.0165  896.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002917.3861140.0002
Check MTime0.00127.4032140.0001
Mysql Total
Database connection0.00084.612510.0008
Mysqli_queries0.002917.305730.0010
Looping result0.00000.096210.0000
Template Total0.001710.010.0017
Template load0.00095.191010.0009
Template processing0.00084.757510.0008
Override
Cache load0.00063.504210.0006
General
dbfile0.00031.600780.0000
String conversion0.00000.056040.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