Share » Forums » Setup & design » How does work view_count ?

How does work view_count ?

How does work view_count ?

Tuesday 14 August 2007 12:29:11 pm - 2 replies

Modified on Tuesday 14 August 2007 12:29:55 pm by Pascal France

Author Message

Felipe Jaramillo

Tuesday 14 August 2007 3:28:38 pm

Hi Pascal!

It seems your config is correct.

I believe the view_count is a very simple implementation of the eZPersisanceObject and it stores it's data in the ezview_counter table.

Maybe you can check if the records are actually being updated. Also, checkout the cronjob file as it's structure is pretty simple on how it retrieves and updates the records.

My main issue with it is that the view_counts obviously favours the oldest items in your site. It would be great to extend this functionality to add stats of views today, this week, this month and this year in addition to general views.

Regards,

Felipe

Felipe Jaramillo
eZ Certified Extension Developer
http://www.aplyca.com | Bogotá, Colombia

Pascal France

Wednesday 15 August 2007 3:25:23 am

Hi Felipe,

My view_count table only contains these values:

count   node_id
   4           819

My questions are:

- why only this node ?
- why the count colum is not updated (after running the updateviewcount.php script) if I access the node_id 819 many times ?

For information, this is a typical reccord of my apache log:

15.11.130.178 - - [15/Aug/2007:11:48:26 +0200] "GET /images/btn-bkgd.gif HTTP/1.1" 404 17165 "http://www.luxpopuli.fr/ez_publish__1/configuration__1/apache_mod_deflate_et_mod_gzip" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "-"

and this is the content of the var/plain_site/log/updateview.log file:

# Finished at Mercredi 15 Août 2007 12:14:59 pm
# Last updated entry:
82.67.66.131 - - [15/Aug/2007:12:10:45 +0200] "GET /images/btn-bkgd.gif HTTP/1.1" 404 17165 "http://luxpopuli.fr/ez_publish__1/trucs_astuces" "Opera/9.22 (X11; Linux i686; U; en)" "-"

Maybe there is something wrong or missing in my logfile.ini ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu