docker-library / docker-library/drupal

Change default OPcache configure values for Maximum Perfomance

Open
#155 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Request
Dominant language
Shell
Stars
291
Forks
199
Avg merge
5h 12m
Merged PRs (30d)
1

Description

Drupal 8 use Symfony. The symfony documentation recommended change the OPcache configure values memory_consumption and max_accelerated_file for Maximum Performance: https://symfony.com/doc/current/performance.html#configure-opcache-for-maximum-performance

; php.ini
; maximum memory that OPcache can use to store compiled PHP files
opcache.memory_consumption=256

; maximum number of files that can be stored in the cache
opcache.max_accelerated_files=20000

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Symfony OPcache performance guidance, then locate where the Drupal image configures PHP and OPcache defaults. Update the relevant defaults to the documented values and verify that the image uses memory_consumption=256 and max_accelerated_files=20000.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, php
Domain
backend, devops, performance
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.