Pages with Captcha are not cached ?

Hello,

Can you confirm me that pages with a captcha are not cached even when website cache is enabled ?

If full pages are not cached because of captcha is it possible to use Ajax Blocks http://drupal.org/project/ajaxblocks on blocks with captcha to still show a cached version of the page then load the block with captcha ?

Any other solution ?

Thanks for your help.

Comments

soxofaan’s picture

Category: bug » support

Indeed, pages with a CAPTCHA won't be cached. This is required for CAPTCHA's to work.
Related: #602226: CAPTCHA and page caching, #632742: Caching with Boost, Varnish, ... causes "CAPTCHA validation error: unknown CAPTCHA session ID"

I'm not familiar with Ajax Blocks, but I doubt that module would make it possible to inject content inside a form. I seems it only allows to load separate blocks.

MakeOnlineShop’s picture

Thank you.

So there is no other possibility ?

All these people with blogs and captcha on blog pages cannot use cache for their whole website if there is a captcha and possibility to comment on each page ?

soxofaan’s picture

So there is no other possibility ?

There are various alternatives/workarounds:
- use comment forms on a separate pages than your main content (supported by drupal core)
- something like http://drupal.org/project/ajax_comments to load the comment form through AJAX (I haven't tested it myself, so I don't know how good it works).
- use http://drupal.org/project/mollom instead of CAPTCHA

kaztur’s picture

- something like http://drupal.org/project/ajax_comments to load the comment form through AJAX (I haven't tested it myself, so I don't know how good it works).
- use http://drupal.org/project/mollom instead of CAPTCHA

Ajax Comments just hide comment form via JS, but doesn't load comment form separately (You can check this using slow connection - You'll see that while page loading the comment form firstly is shown whole and only after hiding via ajax comments.

Also there're some issues about mollom preventing not spam comments from real users.

I think that http://drupal.org/node/1534462 should have far life.

anoopjohn’s picture

There is a module "Boost Captcha" - that will allow for loading of the captcha in forms via ajax calls.

anoopjohn’s picture

Issue summary: View changes
Status: Active » Fixed

I am marking this issue as fixed as the original support question has been answered in the comments above.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.