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

#16 Flush the object cache when switching databases. #17

Merged
merged 2 commits into from
Mar 7, 2023
Merged

#16 Flush the object cache when switching databases. #17

merged 2 commits into from
Mar 7, 2023

Conversation

OllieJones
Copy link
Contributor

When activating or deactivating the plugin, it's necessary to flush the object cache as late as possible before switching databases.

This change uses PHP_INT_MAX for hook priorities to make sure the hooked functions are called very late.

When activating or deactivating the plugin, it's necessary to flush the
object cache as late as possible before switching databases.
@aristath aristath merged commit b6e6168 into WordPress:main Mar 7, 2023
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

Successfully merging this pull request may close these issues.

2 participants