Hi, I understand captcha module disable page caching because it needs to show a different captcha to every anonymous user.

But what if I use the sub module RIDDLER and put only one question on all pages of my sites, there is only one answer to this question, everybody anonymous has to answer it to post. I'm not concerned about spammers finding the answer and be allowed to spam because I can easily change the question sitewide and the spammers won't bother finding the answer everytime I chhange it just for spamming my site. Plus the question is not in english.

But even with one question, the captcha module still disable page caching?

Shouldn't there be an option that if the admin wants always the same question/answer then there is no need to disable drupal cache?

Cheers,
James

Comments

soxofaan’s picture

Project: CAPTCHA » CAPTCHA Riddler
Version: 6.x-2.4 » 6.x-1.x-dev
Category: support » feature

I think support for re-enabling caching does not belong in the core CAPTCHA module and should be done in the riddler module.

awolfey’s picture

Status: Active » Closed (won't fix)

The purpose of the module is to allow multiple questions. If you want one question you'll need a different solution.

alliax’s picture

Status: Closed (won't fix) » Postponed

no it's not to allow multiple questions, the purpose of this module is to provide a question and answer (riddler) submodule to captcha module. It doesn't matter if I use one or several questions and their answer. What is important is that the spambots can't guess the answer to the question. That's how you validate, accept or deny the content protected by captcha + riddler.

So the purpose of this module is not to allow multiple questions. It is one or more questions.

All I'm suggesting is that if it's one then the cache should not be disabled.

If you are not interested in this feature, that's fine, but don't take bad excuses like that, thank you. :-)

awolfey’s picture

You're right, I'm being lazy about this. Also, one question is a valid use case. However, I'm too busy to take it on now. If you submit a patch I'll be happy to review it. Thanks.

alliax’s picture

Thank you for your answer, I understand the problem of workload, it's just good to have the feature request active so someone can maybe see it and submit a patch in the future.
The problem with me is that I've never done a drupal module yet, not even a simple one, I haven't contributed to any code also, I don't think it will happen, but who knows..
In fact if I felt I could do it I think I'd have already done it or at least tried, and would have submitted patches, I like the idea of being a contributor in code not only in feature requests, but it hasn't happened yet :-)

So who knows, even if it's in one year, perhaps someone will post a patch one day, maybe someone has already done it on his own site and can easily submit a patch to this issue maybe next week or next month :-)

kaztur’s picture

+1 for caching if only one question in Riddler.

MakeOnlineShop’s picture

Any update ?

gaëlg’s picture

Version: 6.x-1.x-dev » 8.x-1.x-dev
Issue summary: View changes
Status: Postponed » Needs review
StatusFileSize
new705 bytes

8 years later... :D

prudloff’s picture

StatusFileSize
new888 bytes
new616 bytes

#8 is not enough. We also have to prevent riddler from calling the page_cache_kill_switch service.

anybody’s picture

Status: Needs review » Needs work

Nice work @prudloff. Technically RTBC!

Could this please be documented in the README? Might be important for large sites with heavy caching? Could you add that to your patch finally or create a MR?

anybody’s picture

Title: captcha and drupal cache : doesn't work even for only one question sitewide? » Riddler kills page cache even if there's only one cachable question
Priority: Normal » Minor
anybody’s picture

As there's already a readme issue with an open MR, please simply add the lines for the README here: #3209344: Add README.md file

Afterwards we can RTBC and commit this.

adamps’s picture

Priority: Minor » Normal
Status: Needs work » Reviewed & tested by the community

I propose that the request from #12 be a follow-on action. It only makes sense once this patch has been committed and would be wrong if the README issue was committed first.

anybody’s picture

Thanks @AdamPS! I'm ok with it, if someone does it ;)

  • Anybody committed a96bfa2 on 8.x-1.x
    Issue #1534462 by prudloff, GaëlG, Anybody, awolfey: Riddler kills page...
anybody’s picture

Status: Reviewed & tested by the community » Fixed

Sorry for waiting so long! Committed! :)

@AdamPS: Would you be so kind to solve #12 then? ;)

adamps’s picture

Great thanks for the commit.

Would you be so kind to solve #12 then? ;)

Hmm actually I pointed out a potential problem and therefore proposed an order to do things. I didn't make a personal commitment to do the work myself😃. I don't have time to work on this myself at this exact moment I'm afraid. It seems like the best next step is to add a comment to #3209344: Add README.md file asking for a paragraph to be added. If you like I can, but I would really only be guessing as I don't know what you want to README to say. If you do it, then I feel you'd much more likely get what you were hoping for. The issue has in any case been waiting nearly a year for review after @Webbeh did what you asked for, so it would be nice to give some acknowledgement😃.

anybody’s picture

Haha @AdamPS :D, yes I'll have a look, but of course very much appreciate help. We're all busy people, needing clones or 48H on a 24H day ;)

Thanks a lot for your feedback :)

Status: Fixed » Closed (fixed)

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