• Resolved khunmax

    (@khunmax)


    Hey

    I have used your plugin for a good while. It’s great thanks.

    I have just developed a site for a client and it has a CF7 form on the bottom of every page in the footer. (Client request).

    I have read that if caching is set to less than 24 hours then it should not conflict with the nonce created by CF7.

    Is this correct. Is it possible to set the caching in Comet Cache for less than 24 hours and will that ensure no conflict with CF7.

    Thanks in advance for your kind assistance.

    Regards

    Max

Viewing 6 replies - 1 through 6 (of 6 total)
  • @khunmax Yes, you can set the cache expiration time in Comet Cache → Plugin Options → Cache Expiration Time, which will ensure that no cache file older than that amount of time is served to a visitor.

    That should work fine with CF7, but as Comet Cache does not have any specific integration with CF7 I cannot say for sure. I recommend giving it a try. 🙂

    Thread Starter khunmax

    (@khunmax)

    Ram

    Thanks for your reply.

    After reading the following article:

    https://myatus.com/p/wordpress-caching-and-nonce-lifespan/

    I set the cache expiration time to 10 hours. (Because 12 hours is the max to not effect a nonce right??)

    AND…i set the cache clean up schedule (garbage collection) to 3 minutes.

    Do you foresee any problems with those settings??

    Can I set cache clean up to more than 3 minutes??

    Seems to be working ok on the site I mentioned with has a number of CF7 forms in its design including one in the footer on each page.

    I have checked the source code on each page and I can see your green (comet cache is working script)…but how do I know if there is a resulting conflict with CF7 and the nonces it creates?

    Kind Regards

    Max

    @khunmax Yes, those settings should work fine.

    The best way to test of CF7 is working is to use the CF7 form on a page that’s cached. If it works without issue, then you should be good.

    Thread Starter khunmax

    (@khunmax)

    I have done that everything seems to be working.

    But don’t I have to check some 24 hours into the future because that is when a nonce will fall over if it is going too?

    Yes, but if you have your cache expiration time set to 10 hours, you will never have a cached file that contains a Nonce that’s more than 10 hours old.

    Thread Starter khunmax

    (@khunmax)

    I would like to set to 22 or 23 hours. But reading from the article that I link to above, I am of the understanding that to be safe you should have a time below 12 hours. Do you think that is correct? Or can I use 22 hours safely?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Contact Form 7’ is closed to new replies.