Seditio Source
Root |
./othercms/xenForo 2.2.8/src/XF/Cron/Views.php
<?php

namespace XF\Cron;

class
Views
{
    public static function
runViewUpdate()
    {
       
$app = \XF::app();

       
/** @var \XF\Repository\Thread $threadRepo */
       
$threadRepo = $app->repository('XF:Thread');
       
$threadRepo->batchUpdateThreadViews();

       
/** @var \XF\Repository\Attachment $attachmentRepo */
       
$attachmentRepo = $app->repository('XF:Attachment');
       
$attachmentRepo->batchUpdateAttachmentViews();
    }
}