---
title: "How to increase OPcache memory consumption"
url: "https://ploi.io/documentation/php/how-to-increase-opcache-memory-consumption"
published: "2022-10-07"
last_updated: "2024-01-15"
---

# How to increase OPcache memory consumption

When enabling OPcache via Ploi, Ploi will automatically set the memory consumption variable to use 512MB. At some point, you might want to increase this limit as your number of sites grow.

Luckily, changing this via Ploi is rather easy. First head over to your server and visit the PHP tab. Next press the menu button for the PHP version you'd like to change and select "Edit FPM".

[![](https://ploi.io/storage/j2tuRdtWibZK2Mb6Chadnv6huABsYwSaXru5CKN0.png)](https://ploi.io/storage/j2tuRdtWibZK2Mb6Chadnv6huABsYwSaXru5CKN0.png)

A modal will open with the PHP configuration, you can use **CTRL + F** or **CMD + F** to search inside this file and search for **opcache** preferably. You will see a variable called **memory\_consumption**, feel free to change this to a number to your liking. Make sure to not go over your available RAM.

![OPcache memory consumption](/storage/images/98426985-0ae8-464d-89e5-129687a2d441.png "OPcache memory consumption")

After you've changed your OPcache memory consumption, make sure to reload the FPM worker by either restarting or reloading it.