Skip to content

Commit

Permalink
Delete the cache file if a user comments, clicks remember me as the p…
Browse files Browse the repository at this point in the history
…age is unique to them
  • Loading branch information
donnchawp committed May 2, 2024
1 parent 50796f5 commit 84f5dbe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public function rebuild_on_comment_post( $comment_id, $comment_approved, $commen
*/
if ( isset( $parameters['cookies'] ) && ! empty( $parameters['cookies'] ) ) {
$filename = trailingslashit( get_permalink( $post->ID ) ) . Filesystem_Utils::get_request_filename( $parameters );
$this->storage->invalidate( $filename, Filesystem_Utils::REBUILD_FILE );
$this->storage->invalidate( $filename, Filesystem_Utils::DELETE_FILE );
}
return;
}
Expand Down

0 comments on commit 84f5dbe

Please sign in to comment.