public static function totalPosts()
    {
        $posts = Podium::getInstance()->podiumCache->get('forum.postscount');
        if ($posts === false) {
            $posts = Post::find()->count();
            Podium::getInstance()->podiumCache->set('forum.postscount', $posts);
        }
        return $posts;
    }
public static function totalPosts()
    {
        $posts = Podium::getInstance()->podiumCache->get('forum.postscount');
        if ($posts === false) {
            $posts = Post::find()->count();
            Podium::getInstance()->podiumCache->set('forum.postscount', $posts);
        }
        return $posts;
    }
public static function totalPosts ( ) { $ posts = Podium :: getInstance ( ) -> podiumCache -> get ( 'forum.postscount' ) ; if ( $ posts === false ) { $ posts = Post :: find ( ) -> count ( ) ; Podium :: getInstance ( ) -> podiumCache -> set ( 'forum.postscount' , $ posts ) ; } return $ posts ; }
Counts number of created posts.
@return int
Counts number of created posts .