• Resolved ELAN42///

    (@nokao)


    Hello, we are deciding if massively adopt this plugin for our environment, but first a few questions:

    – Is (or will be) possible to warm-up and (single site) invalidate from the CLI?

    – Does the plugin have any hooks into WP actions? For example, invalidate after plugin update? Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello @nokao … and thank you so much for your interest in my plugin.

    For your first question, the answer is no for now… But I plan to do that for the next release of the plugin (just at the time WP 5.8 will be release, may be some days after).

    For the second one, the answer is no… And I had no intention of doing it until you mentioned it ?? Could you more detailed on such use cases?

    Thanks.

    Thread Starter ELAN42///

    (@nokao)

    Thanks, I’ll look forward to the next release!

    About the second question, take a look at your main competitor:
    https://www.ads-software.com/plugins/flush-opcache/
    There’s an option to auto-flush after any upgrade. That’s what I’m talking about.

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Ahhhh OK ! I understand well…

    “There’s an option to auto-flush after any upgrade.”

    I tough you would like a hook to do something by yourself, after OPcache Manager invalidated opc, and I was curious about what… And I was wrong ??

    So, the answer is no, because it is something which is already automatically done by WordPress itself when any php file is updated (so, for WP upgrade, plugin upgrade and theme upgrade).

    Nevertheless, I can imagine (thanks to your question) something smarter: auto-warmup after WordPress did an invalidation itself… Wow, it could be great! Let me think about it to see if it is a good thing…

    I’ll let you know as soon as I can weigh the pros and cons.

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello @nokao !

    Just to let you know, the next version of OPcache Manager will not implement an “auto-warmup” feature. The WP hooks do not allow to do that…

    Nevertheless, invalidation or warmup will be available via wp-cli.

    Thread Starter ELAN42///

    (@nokao)

    Nevertheless, invalidation or warmup will be available via wp-cli.

    That’s great, thank you!

    BTW, by any chance do you happen to know if it is possible to clear the opcache in a multi-instance environment like Docker Swarm / Kubeneretes?
    I realized that when the PHP-FPM is replicated clearing the cache means clearing it only on the single instance/pod… I can’t find much documentation on the issue, but maybe that’s because PHP CMS like WP are not that popular in multi-instance environments!

    • This reply was modified 3 years, 6 months ago by ELAN42///.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Some questions’ is closed to new replies.