Tagged articles
OPcache
21 articles · Page 1 of 1

21CTOOct 19, 2026 · Backend Development
This article outlines nine practical methods for diagnosing and resolving Laravel performance issues in production, covering request measurement, N+1 query elimination, query plan optimization, memory-efficient data processing, strategic caching, queue offloading, external API timeouts, framework bootstrapping optimizations, and log/payload reduction, with code examples and a step-by-step diagnostic checklist.
CachingLaravelN+1 Queries
0 likes · 16 min read

A legacy PHP 7.2 project with 8.2s average response time was optimized to 1.4s in two weeks through seven fundamental fixes: enabling OPcache, eliminating N+1 queries via eager loading, adding composite database indexes, implementing Redis caching layers, setting HTTP timeouts for external calls, right-sizing PHP-FPM workers, and separating API middleware from web routes.
LaravelN+1 QueryOPcache
0 likes · 12 min read

Learn practical techniques to monitor OPcache, adjust PHP‑FPM settings, reset caches, employ preload, and use shared memory caching, enabling you to identify and mitigate PHP performance degradation in production without restarting services, ensuring continuous user experience.
BackendOPcachePHP
0 likes · 6 min read

This article explains how to apply a series of inline optimization strategies—static typing, function inlining, efficient array and string handling, loop refinements, and Opcache preloading—to dramatically improve PHP execution speed and bring its performance close to that of compiled C code.
InlineOPcachePHP
0 likes · 8 min read

This article explains why Composer's autoloader can become a performance bottleneck in large PHP projects and provides practical steps—such as using Composer's optimization commands, organizing namespaces, separating dev and prod configurations, leveraging PHP 7.4+ preloading, and monitoring with profiling tools—to significantly cut autoload overhead and improve overall application speed.
ComposerOPcacheautoload
0 likes · 7 min read

This article outlines six practical PHP performance optimization techniques—including opcode caching, database query tuning, reducing redundant calculations, choosing efficient data structures, employing lazy loading, and leveraging built‑in functions—to help developers significantly improve the speed and scalability of their backend applications.
OPcachePHPbackend development
0 likes · 5 min read

This article explains the various PHP caching layers—including OPcode, data, page, and HTTP caching—provides configuration examples, code snippets for file, Memcached, and Redis caches, and outlines best practices and invalidation strategies to improve web application performance.
BackendCachingMemcached
0 likes · 7 min read

This article explains how function caching in PHP—using mechanisms such as OPcache, APC, and Zend Opcache—can improve application performance, provides a practical example of enabling OPcache, and outlines additional optimization strategies like using Redis, optimizing database queries, reducing memory usage, and efficient image processing.
CachingOPcachePHP
0 likes · 3 min read

This article examines how enabling and tuning OPcache can dramatically boost PHP request throughput, presents benchmark results before and after optimization, discusses configuration trade‑offs, and outlines safe deployment and cache‑clearing strategies for high‑traffic backend systems.
BackendCachingOPcache
0 likes · 8 min read


21CTOJun 7, 2024 · Backend Development
This article explores fundamental PHP caching techniques—including OPcache, HTTP header client caching, Memcached/Redis object caching, reverse‑proxy page caching, dynamic content caching, and cache invalidation—providing code examples and practical guidance to help developers dramatically improve application performance and scalability.
CachingMemcachedOPcache
0 likes · 5 min read

PHP 8.3 introduces a JIT compiler, enhanced array and string handling, OPcache improvements, and Match expressions, delivering significant performance gains and offering optimization strategies while highlighting common pitfalls to ensure efficient, maintainable backend development.
BackendJITOPcache
0 likes · 6 min read

This article explains the principle of the JIT compiler introduced in PHP 8.0, shows how to enable it via php.ini settings, provides a sample code demonstration, and discusses performance benefits and limitations for PHP developers.
JITOPcachePHP
0 likes · 6 min read

PHP 8.2.2, a bug‑fix release, addresses numerous issues across the core engine, FPM, hash, LDAP, opcache, phar, PHPDBG, POSIX, random, standard library, and XMLWriter components, providing a more stable and secure version for developers.
BackendOPcachefpm
0 likes · 4 min read

This article explains how PHP‑FPM and Nginx handle requests, details the PHP script execution process, introduces OPCache and its shared‑memory design, describes its caching of opcodes and interned strings, and provides practical configuration and update‑strategy recommendations for high‑traffic PHP applications.
OPcache
0 likes · 12 min read

This article explains why changes to PHP code in the TP5.1 framework may require a 30‑second wait before appearing in the browser, revealing that the delay is caused by PHP's OpCache caching mechanism, which must be manually enabled in PHP 5.x but is often enabled by default in PHP 7.x, and provides guidance on diagnosing and resolving the issue.
CachingOPcachePHP
0 likes · 1 min read

This article explains how PHP code is compiled and executed by the Zend virtual machine, detailing the four compilation stages, the structure of opcodes and execution data, the different dispatch mechanisms, and the role of Opcache in improving performance.
OPcacheOpcodesbackend-development
0 likes · 16 min read


21CTOFeb 27, 2017 · Backend Development
PHP7 brings a host of performance improvements and new language features—including refined namespace usage, interfaces, traits, generators, closures, Zend OPcache, and a built‑in HTTP server—each illustrated with practical code examples and best‑practice recommendations for modern backend development.
OPcacheTraitsbackend development
0 likes · 8 min read

A PHP backend team discovered that enabling OpCache with a symlinked project caused the new version to be ignored, traced the issue to cached file paths, and resolved it by adjusting Nginx fastcgi parameters to use the real path, restoring proper deployment behavior.
OPcachePHPnginx
0 likes · 5 min read


21CTOApr 30, 2016 · Information Security
This article explains the security flaws in PHP 7's OPcache engine, demonstrates a novel binary webshell attack that bypasses file‑write protections, and provides step‑by‑step exploitation techniques including file‑cache manipulation, memory‑cache bypass, and timestamp spoofing.
BypassFile CacheOPcache
0 likes · 11 min read


21CTOJan 2, 2016 · Backend Development
This guide outlines five practical steps—enabling Zend Opcache, compiling with GCC 4.8+, activating HugePages, configuring Opcache file cache, and applying PGO—to extract the maximum speed from PHP 7 installations, especially for high‑traffic sites like WordPress.
HugePagesOPcachePGO
0 likes · 5 min read


21CTODec 8, 2015 · Backend Development
This article introduces PHP 7.0.0’s major performance enhancements and provides five practical tuning steps—including enabling Opcache, using a newer GCC compiler, activating HugePages, configuring Opcache file cache, and applying profile‑guided optimization—to maximize speed and efficiency for backend applications.
HugePagesOPcachePGO
0 likes · 5 min read
