I think the maintenance is hourly. I haven’t visited that part of the code recently.
e3: At a quick glance housekeeping is run at the end of the update so this is probably a viable option.
Don’t re-use. Just create a new class property with the new connection.
e: Look how the Logger class fox mentioned does it.
e2: Okay… after a quick glance through the code I get what you’re saying. You’re not actually running the query directly from your plugin, your using the
PluginHost::save() method and you don’t have access to modify the PDO property. Makes sense.
I’ve thought about a bunch of different ideas but in the end I realize that I’m too tired at the moment because it’s the middle of the night for me I’ll revisit this tomorrow if no one else has responded.