Title: Captcha is getting cached
Last modified: August 30, 2016

---

# Captcha is getting cached

 *  [qtpankajsingh](https://wordpress.org/support/users/qtpankajsingh/)
 * (@qtpankajsingh)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/captcha-is-getting-cached/)
 * I’m using Really simple capctha plugin along with contact form 7 and ZenCache.
   The problem is that all my forms getting cached along with captcha. So when I
   disable the cache, captcha works.
 * [https://wordpress.org/plugins/zencache/](https://wordpress.org/plugins/zencache/)

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

 *  Thread Starter [qtpankajsingh](https://wordpress.org/support/users/qtpankajsingh/)
 * (@qtpankajsingh)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/captcha-is-getting-cached/#post-6432944)
 * I think I have found the solution. I wanted to avoid the page from getting cached.
   So I did it by checking all those page manually on content.php inside theme folder
   with there id as follows –
 *     ```
       <?php
               $categoryId = $post_category[0]->cat_ID;
               if ((is_single() && (($categoryId == 31) || ($categoryId == 32))) || (is_page(2784)) || (is_page(3621)) || (is_page(3544))) {
                       function clear_cache_for_page_id_5( ) {
                           $GLOBALS['zencache']->auto_clear_post_cache($post_category[0]->object_id);
                       }
               }
       ?>
       ```
   
 * Here I have called out predefined function of ZenCache to clear cache for that
   particular page.
 *  Plugin Author [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * (@raamdev)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/captcha-is-getting-cached/#post-6433142)
 * [@qtpankajsingh](https://wordpress.org/support/users/qtpankajsingh/) Thank you
   for sharing your solution. 🙂 That’s a nice workaround for now, using the ZenCache
   API to purge the necessary cache file(s).
 * Note that we have two GitHub issues open to investigate and improve compatibility
   with Really Simple Captcha and Contact Form 7:
 * [https://github.com/websharks/zencache/issues/499](https://github.com/websharks/zencache/issues/499)
   
   [https://github.com/websharks/zencache/issues/500](https://github.com/websharks/zencache/issues/500)
 * I’ve added a link to this support thread to those GitHub issues. Please see those
   GitHub Issues for further updates.

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

The topic ‘Captcha is getting cached’ is closed to new replies.

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

## Tags

 * [404-error](https://wordpress.org/support/topic-tag/404-error/)
 * [CAPTCHA image](https://wordpress.org/support/topic-tag/captcha-image/)

 * 2 replies
 * 2 participants
 * Last reply from: [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/captcha-is-getting-cached/#post-6433142)
 * Status: not resolved