Classes/Http/Middleware/RedirectHandler.php
protected function incrementHitCount(array $redirectRecord)
    {
        // Track the hit if not disabled
        if (!GeneralUtility::makeInstance(Features::class)->isFeatureEnabled('redirects.hitCount') || $redirectRecord['disable_hitcount']) {
            return;
        }
        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
            ->getQueryBuilderForTable('sys_redirect');
        $queryBuilder
            ->update('sys_redirect')
            ->where(
                $queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter($redirectRecord['uid'], \PDO::PARAM_INT))
            )
            ->set('hitcount', $queryBuilder->quoteIdentifier('hitcount') . '+1', false)
            ->set('lasthiton', $GLOBALS['EXEC_TIME'])
            ->execute();
    }
protected function incrementHitCount(array $redirectRecord)
    {
        // Track the hit if not disabled
        if (!GeneralUtility::makeInstance(Features::class)->isFeatureEnabled('redirects.hitCount') || $redirectRecord['disable_hitcount']) {
            return;
        }
        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
            ->getQueryBuilderForTable('sys_redirect');
        $queryBuilder
            ->update('sys_redirect')
            ->where(
                $queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter($redirectRecord['uid'], \PDO::PARAM_INT))
            )
            ->set('hitcount', $queryBuilder->quoteIdentifier('hitcount') . '+1', false)
            ->set('lasthiton', $GLOBALS['EXEC_TIME'])
            ->execute();
    }
protected function incrementHitCount ( array $ redirectRecord ) { // Track the hit if not disabled if ( ! GeneralUtility :: makeInstance ( Features :: class ) -> isFeatureEnabled ( 'redirects.hitCount' ) || $ redirectRecord [ 'disable_hitcount' ] ) { return ; } $ queryBuilder = GeneralUtility :: makeInstance ( ConnectionPool :: class ) -> getQueryBuilderForTable ( 'sys_redirect' ) ; $ queryBuilder -> update ( 'sys_redirect' ) -> where ( $ queryBuilder -> expr ( ) -> eq ( 'uid' , $ queryBuilder -> createNamedParameter ( $ redirectRecord [ 'uid' ] , \ PDO :: PARAM_INT ) ) ) -> set ( 'hitcount' , $ queryBuilder -> quoteIdentifier ( 'hitcount' ) . '+1' , false ) -> set ( 'lasthiton' , $ GLOBALS [ 'EXEC_TIME' ] ) -> execute ( ) ; }
Updates the sys_record's hit counter by one

@param array $redirectRecord
Updates the sys_record s hit counter by one