Bug #22618
closed
litespeed-cache 7.0.1 upgrade crashes database
Added by Boone Gorges 6 months ago.
Updated 3 months ago.
Category name:
Litespeed Cache
Description
Downtime after the CAC 2.5.7 upgrade seems to have been caused by the litespeed-cache plugin, which was updated to 7.0.1 during that release. Working with Reclaim, we identified that SHOW TABLES
queries may have been the culprit, and investigation into the plugin upgrade confirm that this type of query is introduced into an upgrade routine: https://github.com/litespeedtech/lscache_wp/blob/c12e26c130ace7c1513cd017ca08a5bfaf902bab/src/data.upgrade.func.php#L28
This is pretty much precisely the issue we ran into with Editoria11y previously: #20828 The solution there was to send an upstream PR to use something more efficient, like DESCRIBE
. We could do something similar here, though I have no idea whether the Litespeed people are liable to accept this kind of PR. If they don't, we're going to have to add a filter to 'query' that catches these and polyfills them with DESCRIBE
or the like.
Here's the PR: https://github.com/litespeedtech/lscache_wp/pull/834
I decided I needed to see if the patch actually worked, so I YOLOed the 7.0.1 update and then patched it in production. It seems to be running OK. At the very least, no major crashes. (The update routine across all sites will still likely require a higher-than-normal mysql usage for a bit.)
If the PR is accepted, we can just update the plugin. If not, then we'll have to do some sort of query filtering.
- Related to Bug #22625: Cloudflare timeout error added
- Target version changed from 2.5.8 to 2.5.9
- Target version changed from 2.5.9 to 2.5.10
No new release yet, so I'm bumping the ticket.
- Target version changed from 2.5.10 to 2.5.11
- Target version changed from 2.5.11 to 2.5.12
- Status changed from New to Staged for Production Release
litespeed-cache has been updated and I've manually confirmed that the database-table check is in the codebase.
- Status changed from Staged for Production Release to Resolved
Also available in: Atom
PDF