• Resolved torren1112

    (@torren1112)


    • comment_author_email_{HASH}
    • comment_author_{HASH}
    • comment_author_url_{HASH}

    Hello, I am using the wp-discuz comment plugin and the data below creates a cookie and the cache is disabled. How can I include this data, which is only used by visitors, in the cache?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Donncha O Caoimh (a11n)

    (@donncha)

    Hi,

    Are you disabling caching when a cookie is detected? Set it to “Enable caching for all visitors” (or the last one, to disable it for logged in visitors only) instead. If the cache is disabled by the wp-discuz plugin, you should talk to the author of that plugin and show them this thread. They can add support for WP Super Cache using the following code.

    You need to tell WP Super Cache to use those cookies to identify users because it only uses the default WordPress cookies by default. Read this page to learn more, but you should add the following lines to an mu-plugin file:


    do_action( 'wpsc_add_cookie', 'comment_author_email_{HASH}' );
    do_action( 'wpsc_add_cookie', 'comment_author_{HASH}' );
    do_action( 'wpsc_add_cookie', 'comment_author_url_{HASH}' );

    Replace the HASH at the end with whatever it is on your site, and test it. It should create a new cache file when you leave a comment.

    Donncha

    Thread Starter torren1112

    (@torren1112)

    thanks

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @torren1112

    I’m going to mark this thread as resolved. Feel free to start a new thread if needed in the future.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.