Skip to content

Commit

Permalink
Disable opcache timestamp validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Elie CHARRA committed Sep 12, 2019
1 parent 29a616e commit 4d03280
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 7.1/rootfs/etc/php/7.1/fpm/conf.d/99-symfony.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ opcache.memory_consumption=256
; maximum number of files that can be stored in the cache
opcache.max_accelerated_files=20000

; In production servers, PHP files should never change, unless a new application version is deployed.
; However, by default OPcache checks if cached files have changed their contents since they were cached.
; This check introduces some overhead that can be avoided as follows:
opcache.validate_timestamps=0

; maximum memory allocated to store the results
realpath_cache_size=4096K

Expand Down
5 changes: 5 additions & 0 deletions 7.2/rootfs/etc/php/7.2/fpm/conf.d/99-symfony.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ opcache.memory_consumption=256
; maximum number of files that can be stored in the cache
opcache.max_accelerated_files=20000

; In production servers, PHP files should never change, unless a new application version is deployed.
; However, by default OPcache checks if cached files have changed their contents since they were cached.
; This check introduces some overhead that can be avoided as follows:
opcache.validate_timestamps=0

; maximum memory allocated to store the results
realpath_cache_size=4096K

Expand Down
5 changes: 5 additions & 0 deletions 7.3/rootfs/etc/php/7.3/fpm/conf.d/99-symfony.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ opcache.memory_consumption=256
; maximum number of files that can be stored in the cache
opcache.max_accelerated_files=20000

; In production servers, PHP files should never change, unless a new application version is deployed.
; However, by default OPcache checks if cached files have changed their contents since they were cached.
; This check introduces some overhead that can be avoided as follows:
opcache.validate_timestamps=0

; maximum memory allocated to store the results
realpath_cache_size=4096K

Expand Down

0 comments on commit 4d03280

Please sign in to comment.