Title: Easy Cache fix
Last modified: August 30, 2016

---

# Easy Cache fix

 *  Resolved [Fabian](https://wordpress.org/support/users/fabifott/)
 * (@fabifott)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/easy-cache-fix/)
 * An easy 1-line fix to make this captcha working with any static cache plugin,
   add the following code needs to be added to your theme’s function.php:
 *     ```
       add_action( 'wp_footer', function() {
       		echo "<script> jQuery('#comment').keydown(function() {var a=jQuery(this); !a.hasClass('clicked')&&a.addClass('clicked')&&jQuery('.cptch_reload_button').click();}); </script>";
       	});
       ```
   
 * It just “clicks” the captcha refresh button as soon as the user starts typing
   a comment. This way it won’t add an extra AJAX request on normal pageviews, only
   if user really wants to submit a comment.
 * [@bestwebsoft](https://wordpress.org/support/users/bestwebsoft/): Please add 
   this to the plugin
 * [https://wordpress.org/plugins/captcha/](https://wordpress.org/plugins/captcha/)

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

 *  Thread Starter [Fabian](https://wordpress.org/support/users/fabifott/)
 * (@fabifott)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/easy-cache-fix/#post-6861832)
 * Just a side note: this is tested to be working with W3 Total Cache and WP Super
   Cache.
 *  [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/easy-cache-fix/#post-6861927)
 * Hi,
 * Thank you for your message and for the proposed solution to the compatibility
   problem of Captcha and caching plugins. We will consider it, and if we deem it
   necessary, we will make the necessary changes to the plugin.
 * Sincerely,
    BestWebSoft Support Team
 *  [BClifton](https://wordpress.org/support/users/omegadm/)
 * (@omegadm)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/easy-cache-fix/#post-6862038)
 * Thank you Fabian – this fix appears to be working for me 😉

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

The topic ‘Easy Cache fix’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/captcha_92b6c9.svg)
 * [Captcha](https://wordpress.org/plugins/captcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/captcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/captcha/)
 * [Active Topics](https://wordpress.org/support/plugin/captcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/captcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/captcha/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)

 * 3 replies
 * 3 participants
 * Last reply from: [BClifton](https://wordpress.org/support/users/omegadm/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/easy-cache-fix/#post-6862038)
 * Status: resolved