forked from keycdn/cache-enabler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update plugin upgrade process for multisites (keycdn#303)
Update the process for when the disk and backend requirements are updated for multisite networks to not all be done at once. This does not scale well. There is a caveat of this change and it is related to the `cache_enabler_disk_updated` site transient. An edge case could arise when this plugin is used on a multisite network as a must-use plugin, so there is no activation/deactivation/uninstalling occurring, and the following occurs within an hour: 1. Update plugin. 2. Forcefully delete the plugin (e.g. SFTP or FTP). 3. Install an older version of the plugin. 4. Update the plugin to the same version as in step 1. The edge case would be the disk requirements would not be updated because the site transient would still exist thinking it already updated itself. The caveats of a must-use plugin itself makes handling that specific scenario a little tricky with what is currently available in the plugin. Quite rare and unlikely but I thought I would put it out there that this can occur as of this commit. Once a new queue system is introduced shortly it will not.
- Loading branch information
Showing
5 changed files
with
71 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters