console/controllers/LinkController.php
/**
     * Removes unrestrained links which are older than [[$olderThan]] days
     *
     * @param integer $olderThan number of days
     * @return integer
     */
Removes unrestrained links which are older than [[$olderThan]] days
@param integer $olderThan number of days
@return integer
Removes unrestrained links which are older than [[ $olderThan ]] days @param integer $olderThan number of days @return integer
public function actionRemoveExpiredLinks($olderThan = 3)
    {
        $expiration = time() - $olderThan * 24 * 60 * 60;
        UnrestrainedLink::deleteAll(['<=', 'created', $expiration]);
        return 0;
    }
public function actionRemoveExpiredLinks ( $ olderThan = 3 ) { $ expiration = time ( ) - $ olderThan * 24 * 60 * 60 ; UnrestrainedLink :: deleteAll ( [ '<=' , 'created' , $ expiration ] ) ; return 0 ; }
Removes unrestrained links which are older than [[$olderThan]] days
 @param integer $olderThan number of days
 @return integer
Removes unrestrained links which are older than [[ $olderThan ]] days @param integer $olderThan number of days @return integer