Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why not purge the cache here ? #90

Open
JudeRosario opened this issue Dec 6, 2018 · 0 comments
Open

Why not purge the cache here ? #90

JudeRosario opened this issue Dec 6, 2018 · 0 comments

Comments

@JudeRosario
Copy link

setcookie( 'sc_commented_posts[' . $post_id . ']', parse_url( get_permalink( $post_id ), PHP_URL_PATH ), ( time() + HOUR_IN_SECONDS * 24 * 30 ) );

Im wondering why we have code here to set the cookie ? Is it not better to simply purge the cache ? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant