---
title: 'Do you take OPCache for granted?'
source: 'https://youtube.com/watch?v=aEV82REe_3Q'
video_id: 'aEV82REe_3Q'
date: 2026-08-03
duration_sec: 62
---

# Do you take OPCache for granted?

> Source: [Do you take OPCache for granted?](https://youtube.com/watch?v=aEV82REe_3Q)

## Summary

This video explains the critical importance of properly configuring OPCache in PHP, highlighting how incorrect settings can lead to significant performance degradation. It details the key configuration parameters and how to diagnose issues using PHP info output.

### Key Points

- **Performance Loss Example** [00:03] — A customer lost 20% in performance because OPCache was configured to 'small', causing PHP to recompile scripts on every request, which is expensive.
- **Critical OPCache Settings** [00:19] — Three settings are critical: memory consumption, maximum accelerated files, and internal strings buffer.
- **Diagnosing OPCache Issues** [00:35] — Use PHP info output of Zend OPCache to check values like free memory, internal strings free memory, and the cache keys to max keys ratio to determine if limits are reached.

### Conclusion

Proper OPCache configuration is essential for PHP performance; ignoring it can lead to significant slowdowns. Regularly monitor OPCache metrics to ensure optimal settings.

## Transcript

This customer did and they lost 20% in performance because of it.  When Upcash is configured to small, PHP is recompiling scripts and every request over and over again.  And this is obviously expensive.  The PHP in settings
obviously expensive.  The PHP in settings for UPC have three settings that are critical to get this right.  Memory consumption, maximum accelerated files and internal strings buffer.  You can look at the PHP info output of Zent up cash
at the PHP info output of Zent up cash for the values ​​of free memory internal strings free memory and the cash keys to max keys ratio to find out if the limits max keys ratio to find out if the limits are reached in application.
more configuration settings blog onways.com am
