In WordPress and similar PHP-based applications, a PHP worker is a background process responsible for executing PHP code and generating dynamic web pages.
PHP workers play a key role in how many simultaneous requests your website can handle when content is not served from cache.
Table of Contents
What a PHP worker does
A PHP worker processes tasks such as:
- generating HTML pages for visitors
- executing WordPress code and plugins
- handling uncached page requests
- running scheduled background tasks (cron jobs)
Each request that cannot be served from cache requires a PHP worker to process it.
How PHP workers affect performance
PHP workers determine how many requests your website can handle at the same time.
For example:
- if a site has 2 PHP workers
- and 4 users access it simultaneously
- then 2 requests are processed immediately
- the remaining 2 wait in a queue until a worker becomes available
This can lead to delays if traffic is high and no caching is used.
When PHP workers matter most
PHP workers become especially important for:
- e-commerce websites
- forums and community platforms
- dynamic websites with heavy plugin usage
- high-traffic WordPress installations
These types of sites generate many uncached requests.
When PHP workers matter less
If your website uses:
- full-page caching
- optimized themes
- minimal plugin usage
then most requests are served quickly, and PHP workers are less frequently saturated.
Practical implications
- more PHP workers = better handling of concurrent traffic
- insufficient workers can cause slow responses or queues
- caching reduces reliance on PHP workers
- worker limits are usually defined by the hosting plan
Summary
A PHP worker is a server process that executes PHP code and generates dynamic website content. The number of available workers determines how many uncached requests your website can handle simultaneously.