• Resolved eriky82

    (@eriky82)


    Hi, I’ve been using the SQLite Object Cache for a long time now, without too many issues. Recently I did have significant issues after an upgrade of the “Nextend Social Login” plugin. Each page would end up in and endless redirect loop, and I had to remove the plugin by hand from the plugins folder.

    During those issues, I also had issues with the ‘Fluent Forms’ plugin constantly sending me an email on each cron run. While normally it sends that email once a week.

    After a suggestion from the author of Nextend social login, I disabled the object cache, retried the upgrade, and that fixed all issues. The emails stopped too.

    I don’t know enough about WordPress and object caching to judge which plugin is “at fault”, so to say. Is the Nextend plugin doing something wrong to cause this? Or should the Object Cache perhaps flush itself after plugin upgrades? The last option would not be a bad idea in my opinion, since I needed to flush the cache in the past with other plugins too after upgrades.

    I’d love to hear your take on this.

    • This topic was modified 7 months, 3 weeks ago by eriky82.
    • This topic was modified 7 months, 3 weeks ago by eriky82.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author OllieJones

    (@olliejones)

    Thanks for letting me know about this. It smells to me like a stale-cache-value problem.

    Does your site use the APCu feature of this plugin? Did you use WP-CLI, the dashboard plugin panel, or the auto-upgrade feature to do the upgrades that caused the problem?

    Does flushing (deleting all entries) from this cache clear the problem out?

    When the persistent object cache is active, the WordPress objects called Transients live in the object cache, not the MariaDb or MySQL database. I wonder if those plugins somehow handle transients in the database with direct SQL queries or using the options API rather than the transients API? That coiuld cause the cached data to be wrong.

    I can grab the upgrader_process_complete hook and flush everything on installation of any software. If that helps with site integrity, who cares whose “fault” the problem is?

    Here’s the github issue. https://github.com/OllieJones/sqlite-object-cache/issues/92

    Thread Starter eriky82

    (@eriky82)

    To answer your questions:

    • Yes I recently enabled APCu
    • I manually update through the WordPress dashboard (click the upgrade link after an upgrade has been out for more than a few days unless it’s a security fix)
    • I disabled the Object Cache to ensure it didn’t fill up again before I could hit the upgrade link, so I can’t say if flushing would have helped, but I’m betting it would
    • I think a preemptive flush using that hook would be a great addition!
    Plugin Author OllieJones

    (@olliejones)

    Preemptive flush coming soon.

    Plugin Author OllieJones

    (@olliejones)

    The most recent version of the plugin flushes the cache after any software installation or upgrade operation. That should remove this stale data.

    Thread Starter eriky82

    (@eriky82)

    Yes I noticed! Thanks for the great plugin and continued work and support.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Issues after plugin upgrades’ is closed to new replies.