Support » Plugin: Akismet Anti-Spam » Extra query for nonce option

  • Resolved Stefano Lissa

    (@satollo)


    Hi, debugging the queries on a blog I found Akismet trying to get the option ‘akismet_comment_nonce’ on each page load a then filter that option. Since the option is not present in the database and hence not cache but the “all options load” at startup, WP need to query the database for this option every time.

    I have not found a place in the admin panel where to set this option, could you change the:

    $akismet_comment_nonce_option = apply_filters( ‘akismet_comment_nonce’, get_option( ‘akismet_comment_nonce’ ) );

    to something like

    $akismet_comment_nonce_option = apply_filters( ‘akismet_comment_nonce’, false );

    to avoid that query?

    Thank you, Stefano Lissa.

    • This topic was modified 1 year, 2 months ago by  Stefano Lissa.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Extra query for nonce option’ is closed to new replies.