XF 2.0 how to update views immediately?

1) Go to ACP > Tools > Cron entries.
2) At the top right click on the Add cron entry button.
3) On the next screen enter the following:

Cron entry ID: viewscustom
Title: Update view counters custom
Cron callback: Class: XF\Cron\Views Method: runViewUpdate
Run on type of day: Leave that set as is
Run at hours: Any
Run at minutes: Any

Now save that cron entry.

Now disable the "Update view counters" cron. Doing all of that will update the counter every minute, provided there are active users in the site to trigger the cron.
 
Back
Top Bottom