
if [ -f /etc/php.ini ] ; then
  if ! grep -q "turck-mmcache\.so" /etc/php.ini ; then
    cat >> /etc/php.ini << EOF
extension="/usr/lib/php/extensions/turck-mmcache.so"
mmcache.shm_size="16"
mmcache.cache_dir="/var/cache/mmcache"
mmcache.enable="1"
mmcache.optimizer="1"
mmcache.check_mtime="1"
mmcache.debug="0"
mmcache.filter=""
mmcache.shm_max="0"
mmcache.shm_ttl="0"
mmcache.shm_prune_period="0"
mmcache.shm_only="0"
mmcache.compress="1"
EOF
  fi
fi

# Restart apache (if it actually exists)
/usr/sbin/apachectl graceful 2>/dev/null
