How to speed up database and report updates
On the StaffCounter Local Server, just like in the cloud version, data does not appear in the database immediately after being received. Instead, the system collects and processes it in batches. Every 10 minutes, special services gather information from uploaded HTML files and transfer it into database tables. This process is called parsing.
Once the data is parsed and stored in the database, it becomes available for reports and analytics.
If you need faster updates, you can adjust the cron configuration file:staff/data/etc/cron.d/crontab
Change the schedule to run once per minute (*/1
) for the following processes:
serveDeltaLogs.php
wcDevicesStats.php
Default settings:
serveDeltaLogs.php
— runs every 5 minutes (*/5
)wcDevicesStats.php
— runs every 15 minutes (*/15
)