# P002R

PHP performance improvements.

# Description

The opcache.max_file_size directive determines the maximum file size that can be cached by OPcache. Setting this value to zero allows all files to be cached, which can significantly improve the Time To First Byte (TTFB) metric. Previously, this value was limited to avoid caching large files deemed unnecessary for application functionality. However, further analysis has shown that removing this limitation enhances performance without adverse effects.

# Impact

  • Web Layer

# Changes

The opcache.max_file_size directive will be updated to zero.

# If You Accept

During your chosen maintenance window, the patch will be applied. PHP-FPM will be restarted on the web tier to apply the changes. No downtime is expected since we are only restarting the PHP-FPM service.

# If You Reject

The current configuration will remain unchanged, and no performance improvements will be applied.