Sometimes the use of resources by the application causes issues with memory. This can be due to extensions programming, resource limitations on the server, different loads on the server taking up resources, etc. When this occurs, one of the settings you can change to lighten the memory load is to change the option for printing invoices to use the hard drive to cache the process. This can lead to perfomance issues with the generation of the PDF invoices, but will save memory. The following tutorial will take you through the process of changing the setting to use disk caching for PDF invoices in PrestaShop 1.5
Selecting Disk Caching to Create PDF Invoices
- Login to the Administrator Dashboard as an Administrator
- Go to the menu bar and hover over ORDERS, then click on the second item that appears in the drop-down menu, INVOICES. Scroll down into the PRINT PDF INVOICE options until you will see the last item:
Note that the checkbox to make this item active is only available when the MultiShop option is turned on and particular shop is selected.
Click on the checkbox to make the radial buttons (marked Yes and No) active. Activate by selecting YES, or deactivate by selecting NO.
- Click on the SAVE button below in order to save your changes.
The main effect of using disk caching for generating invoices is to reduce the amount of memory being used by the Prestashop application. This option shifts the memory being used for this process to the hard drive instead of the RAM memory used by the server. You should be conscientious of this effect. The generation of the invoice and the performance of your server can be adversely affected if you have very little hard drive space available. Make sure that you have ample hard drive space available (more than 30% is preferable) before making this option active. If you are unsure, check with your hosting provider's technical support or your website administrator before setting the option.