Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter qtpankajsingh

    (@qtpankajsingh)

    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

    (@raamdev)

    @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/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.