# HG changeset patch # User IBBoard # Date 1409144267 0 # Node ID ea71652452e9dd407a38b4af1948a0ecb5027a81 # Parent b0a6f4b93e1035d83f1c6c447f41c570f6f39115 Give OpCache more memory and make sure that we refresh on config changes diff -r b0a6f4b93e10 -r ea71652452e9 modules/website/manifests/php.pp --- a/modules/website/manifests/php.pp Wed Aug 27 12:57:19 2014 +0000 +++ b/modules/website/manifests/php.pp Wed Aug 27 12:57:47 2014 +0000 @@ -2,10 +2,15 @@ $suffix = '', $opcache = undef, ) { + File { + notify => Service['httpd'], + } + Package { + notify => Service['httpd'], + } $packages = [ "php${suffix}", "php${suffix}-mcrypt", "php${suffix}-mbstring", "php${suffix}-xml", "php${suffix}-gd" ] package { $packages: ensure => latest, - notify => Service['httpd'] } -> file { '/etc/php.d/custom-lockdown.ini': @@ -20,7 +25,8 @@ } file { '/etc/php.d/opcache.ini': ensure => present, - content => 'zend_extension=/usr/lib64/php/modules/opcache.so', + content => 'zend_extension=/usr/lib64/php/modules/opcache.so +opcache.memory_consumption=96 ', } } }