Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,199 of 9,199 pages
About the help in other languages
All help pages

viewcountcollect.php cronjob

Bring the access logs of every node that serves the installation to the node that counts the page views.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/cronjobs/viewcountcollect.md

On this page

The viewcountcollect.php cronjob

Bring the access logs of every node that serves the installation to the node that counts the page views.

Entry point cronjobs/viewcountcollect.php, code in kernel/private/classes/cronjobs/viewcountcollect.php.

The code of cronjobs/viewcountcollect.php. The file cronjobs/viewcountcollect.php is one call to it.
Guide: doc/eng-us/guides/view-count-statistics.md

When it runs

In the shipped settings/cronjob.ini it belongs to: the part view_count_nodes, the part view_count_collect.

# run its part (as the user the web server runs as, from the installation root)
php runcronjobs.php view_count_nodes
./console exp:runcronjobs view_count_nodes
# run only this script
php runcronjobs.php viewcountcollect

Add it to a part in an override:

<?php /* #?ini charset="utf-8"?
# settings/override/cronjob.ini.append.php
[CronjobPart-view_count_nodes]
Scripts[]=viewcountcollect.php
*/ ?>

Generated by ./console exp:help:examples from cronjobs/viewcountcollect.php, kernel/private/classes/cronjobs/viewcountcollect.php, settings/cronjob.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x