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;
});