Private posts
-
Hi, I see your plugin caches password protected posts except when password is not required (https://plugins.trac.ww.wp.xz.cn/browser/cache-control/trunk/cache-control.php#L290). This cause password form to be cached and you can’t see protected content until cache expires.
I think you can remove the line linked before to solve the issue.My workaround:
add_filter(‘cache_control_nocacheables’,function ($noncacheable){
global $post;
if(!empty($post->post_password) )
return true;
return $noncacheable;
});
The topic ‘Private posts’ is closed to new replies.