-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from outlandishideas/use-opcache
Enable + configure opcache; tidy up PHP config overrides
- Loading branch information
Showing
5 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
; Configuration should be common to all supported PHP versions. | ||
|
||
date.timezone=Europe/London | ||
|
||
session.autostart=0 | ||
|
||
post_max_size=16M | ||
upload_max_filesize=16M | ||
|
||
; See https://secure.php.net/manual/en/opcache.configuration.php#ini.opcache.max-accelerated-files | ||
; and https://www.scalingphpbook.com/blog/2014/02/14/best-zend-opcache-settings.html | ||
opcache.max_accelerated_files = 7963 | ||
|
||
; Support very small ECS tasks, but increase slightly from default 128MB. | ||
opcache.memory_consumption = 192 | ||
|
||
; Increase from default 8MB | ||
opcache.interned_strings_buffer = 32 | ||
|
||
; As recommended by https://secure.php.net/manual/en/opcache.installation.php and | ||
; https://www.scalingphpbook.com/blog/2014/02/14/best-zend-opcache-settings.html | ||
opcache.fast_shutdown = 1 | ||
|
||
; Task definition artifacts are immutable on ECS and cache check time is 0 on local -> may as well make tasks faster | ||
opcache.enable_cli = 1 | ||
|
||
; Note opcache.validate_timestamps = 0 is added for ECS instances by modifications in apps' own deployment | ||
; Dockerfiles. The below is intended for development only – it re-checks files immediately – and is rendered | ||
; redundant on ECS by that setting. | ||
opcache.revalidate_freq = 0 | ||
|
||
; ECS deployments' Dockerfiles should set this additional key, but on local | ||
; it would mean you can't see any changes as you work. | ||
; opcache.validate_timestamps = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters