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 9 months, 2 weeks ago by  Stefano Lissa.
Viewing 1 replies (of 1 total)
  • Plugin Author Christopher Finke

    (@cfinke)

    A fix to prevent unnecessary querying for this option was included in version 3.3.1, released today. Thanks for reporting it.

Viewing 1 replies (of 1 total)
  • The topic ‘Extra query for nonce option’ is closed to new replies.