Home  >  Article  >  Backend Development  >  Opcache和APCu有兼容问题吗?

Opcache和APCu有兼容问题吗?

PHPz
PHPzOriginal
2016-06-06 20:15:542870browse

Opcache和APCu没有兼容问题。PHP以前的版本有扩展apc,apc缓存分为系统缓存和用户缓存。php5.5后,opcache代替apc系统缓存的位置。用户缓存功能独立出来,开启新的组件,这个组件叫做apcu。所以这两个扩展不冲突。

Opcache和APCu有兼容问题吗?

貌似 php 安装多个功能重复的 opcode 拓展会有一定负面影响。APCu 有也是有字节码缓存的,那么Opcache和APCu之间是不是有兼容问题吗?会不会冲突?是不是就要停用 Opcache 了?

Opcache和APCu之间没有兼容问题,不冲突。

PHP 以前的版本有扩展 apc,apc缓存分为系统缓存和用户缓存。

php5.5以后,opcache将代替apc做为php加速的位置,也就是代替其系统缓存的位置。

用户缓存功能独立出来,开启新的组件,这个组件名称叫做apcu。

所以这两个扩展不冲突。

相关推荐:PHP视频教程

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn