• Resolved Leo Santis

    (@leosantis)


    In fact I have both APCu and OPcache Manager installing and running well for quite a long time without any issues and that’s including Analytics Panels for both.

    Indeed, Analytics even helped me to fine-tuned server configuration.

    I decided to disable the default WordPress cron and create a task on the server for notorious reasons.

    This task is scheduled to run every 5 minutes and it’s running ok. All WP tasks are not behind and health status is also Ok. I’m telling that because if server cron task was not OK, those would warning me about (I tested).

    With server cron task both APCu and Opcache analytics are dead. If switch back regular wp-cron, analytics comes bck to normal.

    That’s quite strange as I could read around other topics here, it was supposed to work like that.

    The only thing that could affect (despite it’s working on regular wp-cron) is I’m running on Nginx.

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

    (@pierrelannoy)

    Hello @leosantis !

    How is your server cron task done? Is it via http (with curl or wget) or is it done via php cli?

    Thread Starter Leo Santis

    (@leosantis)

    Hi @pierrelannoy ,

    Glad to hear from you and your quick answer.

    Cron setup is typical direct PHP such as :

    */5 * * * * /usr/local/bin/ea-php83 /home/user/domain.com/wp-cron.php >/dev/null 2>&1

    Checking cron.log it runs OK and like I said, all regular WP schedule tasks are OK but PerfOps Analytics.

    Wget commands are disabled in y server for security reasons.

    • This reply was modified 1 month, 3 weeks ago by Leo Santis.
    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    OK. It’s what I thought…
    The error is mainly due to differences in php configuration (php.ini and others) beetwen web and cli.

    If you can’t test it with wget or curl (I don’t understand why it is a security reason, despite my best efforts), you have to set your cli php configuration the same way you’ve done it with your web php handler. I suggest trying to start by verifying APCu is loaded and activated and OPCache is activated (with no restrictions about OPcache functions).

    Thread Starter Leo Santis

    (@leosantis)

    Just edited server cron to Curl and it’s all great again. Probably that’s something (somewhere) related to php version, different between web and cli like you mentioned.

    Wget is blocked here to avoid users to run anything from outside server, that caused us some damage in the past where people just see some “google” recipes.

    Thank you and all the best

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Great news!

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

You must be logged in to reply to this topic.