Problem/Motivation

The PHP runtime may not have OPcache enabled or optimally configured, which can lead to unnecessary PHP re-compilation on every request, reduced performance, and inefficient use of server resources.

Steps to reproduce

Proposed resolution

Add a new Performace FitCheck plugin PhpOpcacheConfigurationCheck that:

  • Detects whether PHP OPcache is enabled in the current runtime used by the Drupal site.
  • Checks key OPcache settings (for example, opcache.enable, opcache.memory_consumption, opcache.max_accelerated_files, and opcache.validate_timestamps) against recommended baseline values for production.
  • Fails with FitWeight::Medium when OPcache is disabled or clearly misconfigured, and provides a brief help message pointing to recommended production settings.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork drupalfit-3558982

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

harivansh created an issue. See original summary.

harivansh’s picture

shubham.prakash made their first commit to this issue’s fork.

shubham.prakash’s picture

Status: Active » Needs review

harivansh’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

harivansh’s picture

Status: Fixed » Closed (fixed)