Problem with Captcha-bws plugin
-
I have seen that if I enable the WP-Optimize cache, Captcha-bws plugin does not work.
-
Hi there,
Thanks for the report. Just to confirm, is this the plugin you’re talking about?
https://wordpress.org/plugins/google-captcha/Best,
Marc
Thanks. This plugin is currently closed, so I can’t download it to test. It says that it’s temporary, but it might indicate an issue with the plugin.
I tried disabling the WP-Optimize cache and then I reactivated it and now Captcha plugin works …. I don’t understand.
If you tried only once, right after re-activating, it might be because the page wasn’t cached (it needs to be visited once to generate the cache file).
If the captcha is loaded via PHP, it will not work the following times.
You then might want to add the page where the captcha is to list to exclude from cache in the cache advanced settings.I would like Captcha plugin to be excluded from the cache, this would solve the problem. Is this possible?
Currently the only way this could happen is if the captcha is loaded via javascript (like reCaptcha for example). The whole page is stored in the cache, and at the moment we can’t add or remove parts from it. This would also reduce the efficiency of the cache system.
Now it seems to work on all pages. Probably when I deactivated and reactivated WP-Optimize, the Captcha plugin has been cached.
Hi Steve,
Is this the expected behaviour, or an issue (not sure from what you say above)? If it’s an issue, maybe you can share your website’s URL so I can take a look at what’s happening.
This is the URL: https://albertifoto.altervista.org
In order to preload Captcha plugin in the WP-Optimize cache I have to disable and enable this option, then Captcha will work correctly.
Thank you for the details.
So you shouldn’t have to disable and enable this option.
You can just press the Purge cache button below (not sure how it’s called in Italian).In any case, you shouldn’t have to purge the cache for this to work, as the captcha plugin uses javascript to enable the functionality.
But I’ve noticed that it uses the “nonces” system, so you should set the cache lifespan option to maximum 8 hours:

So can I also set 1 hour?
You can, but I would keep it a bit higher, otherwise the cache might not be very useful, unless if your site has many visitors per hour.
8 hours can go, but the problem with Captcha is shown when I install the updated version of the theme. If the user writes a comment in these 8 hours, this shows a Captcha error.
-
This reply was modified 6 years, 9 months ago by
steve92.
Does the error happen for the first person who comments as well, or only for the next ones?
-
This reply was modified 6 years, 9 months ago by
The topic ‘Problem with Captcha-bws plugin’ is closed to new replies.
