changeset 3:ea71652452e9

Give OpCache more memory and make sure that we refresh on config changes
author IBBoard <dev@ibboard.co.uk>
date Wed, 27 Aug 2014 12:57:47 +0000
parents b0a6f4b93e10
children 894e6287926f
files modules/website/manifests/php.pp
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 ',
     }
   }
 }