• Resolved Imagerikq

    (@rikq)


    Hi Ollie,

    Thank you for creating such a great plugin! My question isn’t about a bug—everything is working well—but rather about proactively avoiding potential issues.

    I’m wondering if the plugin is susceptible to the alloptions race condition, which appears to stem from how WordPress handles object caching.

    This thread provides a detailed explanation of the issue. The suggested workaround there (in the linked comment) involves a code snippet that helps mitigate the race condition, but it doesn’t seem like the most elegant or optimal solution.

    In the past, I’ve used the “Redis Object Cache” plugin, which is also affected by this same issue (as discussed here). The free version requires the same workaround, while the premium version reportedly handles the issue internally.

    So my question is:
    Does the “SQLite Object Cache” plugin require a similar workaround? Or has this potential issue already been handled in the plugin code?

    Thanks again for your work on this plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ImageOllieJones

    (@olliejones)

    Thanks for the great question, and for drawing my attention to the race-condition situation. (I didn’t know about it, but it’s not surprising considering the hacky nature of alloptions.) I will investigate, and if it seems wise, add the workaround Felix Arntz recommended.

    Plugin Author ImageOllieJones

    (@olliejones)

    I looked at the alloptions race condition ticket on Trac. Here are some observations.

    https://github.com/OllieJones/sqlite-object-cache/issues/88#issuecomment-3383198576

    I’m not sure the solution to the problem that this plugin would need to use to get all the way around this — unbundling the alloptions object in the cache, each into its own key / value — would be feasible to test at scale in the wild without disrupting a lot of sites.

    Let’s track the future of this issue at that Github issue. Thanks again for reporting it.

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

The topic ‘Is this susceptible to the alloptions race condition?’ is closed to new replies.