It is recommended that you set realpath cache size to 10 MB for Magento Commerce 2.3.x and Commerce Cloud 2.3.x users. Realpath cache caches the real file system paths of filenames referenced instead of looking them up each time. Every time various file functions are performed or require a file and use a relative path, PHP has to look up where that file really exists.
Affected products and versions
- Magento Commerce Cloud all versions v.2.3.x and above
- Magento Commerce all versions v.2.3.x and above
Best Practice
If realpath cache size is too low or high it adds additional overhead during cache generation. Increase realpath_cache_size
php setting in php.ini
file. Magento best practice states that the allocated memory for realpath cache needs to be 10 MB. Refer to Configure PHP Options.
Related reading
Refer to DevDocs PHP settings.
Best practices to improve Magento Commerce Cloud site performance:
- Database best practices for Magento Commerce Cloud
- Most common database issues in Magento Commerce Cloud
- Indexers "Update On Schedule" optimizes Magento performance