WordPress.org

Ready to get started?Download WordPress

Forums

P2
Speed Up p2 theme for users number more than 20000 users (1 post)

  1. cingcong
    Member
    Posted 2 years ago #

    To speed up p2 theme for more than 20000 users , disabled all "at name" / @username hooks in functions.php

    /* disabled by me too, slow ...
    if ( !is_admin() ) add_filter( 'the_content', 'p2_at_names' ); // hook into content
    if ( !is_admin() ) add_filter( 'comment_text', 'p2_at_names' ); // hook into comment text
    */

    and ...

    /* disabled by me, too slow
    add_filter( 'the_content', 'p2_at_name_highlight' );
    add_filter( 'comment_text', 'p2_at_name_highlight' );
    */

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by cingcong
  • This topic is not a support question
  • WordPress version: 3.1.3