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

wpsc_add_cookie called on init causes corruption #47

Open
donnchawp opened this issue Feb 7, 2019 · 0 comments
Open

wpsc_add_cookie called on init causes corruption #47

donnchawp opened this issue Feb 7, 2019 · 0 comments

Comments

@donnchawp
Copy link

Thank you for using wpsc_add_cookie()! Unfortunately it's causing problems because it's being called on init. Multiple processes on websites using WP Super Cache try to update the plugin configuration file which causes the file to be corrupted as writes happen so often. We're going to address this issue in WP Super Cache but until then it's still a problem.

It could probably be avoided by using admin_init rather than the init action, but the cookies should really only be updated on the settings page for this plugin.

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