• Resolved Lo?c Martin

    (@loicmartin)


    Hello,

    When I’m administering my site, Query Monitor tells me that the PHP limit is set to 0 and that OPCache is not activated.

    When I go to my front home page, Query Monitor shows me that the PHP limit is 1024 MB and that OPCache is activated.

    Do you know why? What can I do about it?

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

    (@johnbillion)

    WordPress Core Developer

    Regarding the memory limit, it’s entirely possible that this differs in the admin area and the front end because WordPress itself attempts to set a higher memory limit in the admin area. I don’t remember the exact logic but it uses the wp_raise_memory_limit() function if you want to look into it.

    Regarding the opcode cache, I suppose there is a chance that this is not active for paths within the admin area, although that seems very strange. Which opcode cache is in use? Zend OPcache? Are you on a managed WordPress host? If so, contact your web host and ask them about it.

    Thread Starter Lo?c Martin

    (@loicmartin)

    Thanks for the reply, in the meantime I’ve found the solution. It was because of my host (Ionos), I had put the php.ini file at the root of my site and it applied well to the front but I had to use an ssh command to replicate this “php.ini” file in all the site’s directories.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘OPCache is not used and PHP memory is not limited’ is closed to new replies.