Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author GatorDog

    (@gatordog)

    The cookie law plugin author should actually make their plugin cache friendly, I left a post in their support area regarding this. However, there’s also a way you can do this using the GatorCache hooks, however, I’m not sure if gc_skip_cache exists in the current GatorCache version. You may have to wait for the next update which should be out in the next couple days. But anyhow, here’s the code you would add to your functions.php file:

    add_filter('gc_skip_cache', function($skip){
        if (!filter_input(INPUT_COOKIE, 'pcl_viewed', FILTER_VALIDATE_BOOLEAN) {
            $skip = true;
        }
        return $skip;
    });
    Thread Starter Foodblogger

    (@foodblogger)

    Thx, I am happy with this!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude Pronamic cookies’ is closed to new replies.