• Resolved confusedneedhelp

    (@confusedneedhelp)


    Hi,

    I am using the wpdiscuz plugin for comments. When I approve a new comment from the admin area it does not purge the cache for the that page/post. I believe this should be standard according to what I have read.

    I am using file based caching and have version 7.0.3 installed. Automatic Purge is set to ON.

    Any help is appreciated.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Delyan Delov

    (@delyandelov)

    Hello @confusedneedhelp,

    Indeed, the SG Optimizer cache should be cleared on every comment status change. This is the hook we are using in this particular case – “wp_set_comment_status”. You should check if the wpdiscuz plugin is using the same function otherwise, the SGO cache will not be cleared automatically.

    Best Regards,
    Delyan Delov

    Thread Starter confusedneedhelp

    (@confusedneedhelp)

    Actually the comment is held in moderation after being submitted by the plugin. Then it is as far as I know the standard wordpress approve comment from the back end.

    Thread Starter confusedneedhelp

    (@confusedneedhelp)

    I have checked this with both comments being submitted directly without approval and needing approval and the cache does not clear. I suspect therefore that the action you refer to above is not being used or it is being used and there is another issue. Whatever the issue I feel that your plugin should be compatible with the WpDiscuz plugin.

    Plugin Support Simeon Boev

    (@k3llanved)

    Hello,

    I have tested the WpDiscuz plugin on my end with both logged and regular visitors and all comments are displayed as intended once they are submitted/approved while the automatic purge feature is enabled. Make sure not to block the internal WordPress cron as the comment cache purge feature will not work otherwise.

    Of course, we could always take a closer look at the case if you contact us via our HelpDesk.

    Best Regards,
    Simeon Boev

    Thread Starter confusedneedhelp

    (@confusedneedhelp)

    Can you confirm that as a non-logged user you refreshed the page after submitting the comment? Because it will show a comment in the browser of the person that submitted it added by ajax. But when you open the page on another browser it is not showing.

    I have not blocked the internal WordPress cron as far as I know.

    Plugin Support Simeon Boev

    (@k3llanved)

    I have tested on a fresh WordPress with only WpDiscuz and SiteGround Optimizer being active. All comments were present upon a page refresh regardless of whether I used a logged-in user or not. I did not need to purge the cache of our plugin in order to see the newly created comments.

    Best Regards,
    Simeon Boev

    Thread Starter confusedneedhelp

    (@confusedneedhelp)

    Ok, thanks for your help. I have done some more testing. It seems that the FB caching is causing the problem. If I only have Dynamic Cache set to on then the auto purge works. However, with FB cache set on it does not purge. I have changed all the settings for FB caching but no difference. Can you finally please confirm if you have FB caching enabled on your test site?

    Plugin Support Vladimir Trandev

    (@vtrandev)

    Hello @confusedneedhelp,

    I made some additional tests using a fresh WordPress application and managed to replicate the issue when “File-Based Caching” is enabled.

    In this case, you should consider to manually purge the cache or to keep “File-Based Caching” disabled for your application.

    Regards,
    Vladimir

    Thread Starter confusedneedhelp

    (@confusedneedhelp)

    Ok many thanks for your help. I will go back to my previous caching solution.

    Plugin Support Georgi Ganchev

    (@georgiganchev)

    Hello @confusedneedhelp,

    Please be informed that we have released a new version of our SiteGround Optimizer plugin.

    You can update the plugin and enable File-based caching again. The automatic purge has been improved in the new version and the problem should no longer occur. Let us know if you still encounter any issues.

    Best regards,
    Georgi Ganchev

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Auto Purge not working with New Approved Comments’ is closed to new replies.