What is userland caching APCu extension in PHP?

前端 未结 1 496
悲哀的现实
悲哀的现实 2021-01-01 10:23

Just a question related to OPcache cause I didn\'t understand it and find an answer on Google:

When we talk about userland caching, what does it mean? I know PHP is

相关标签:
1条回答
  • 2021-01-01 10:44

    APCu was really developed by Joe Watkins in response to OPcache. APC supports both opcode caching and data caching, but has been dogged with stability problems in support opcode caching since PHP 5.4. After Zend Inc opened the source of Opcache and placed it under the PHP licence, it became the core and preferred opcode cache from PHP 5.5. But it only supports opcode caching and not data caching.

    Joe's APCu is in essence a stripped out version of APC that only includes the data caching code, and is designed to be used along side OpCache if you need data caching.

    Note that whereas Opcode caching is transparent at a source code level, data caching is not. Your application needs to be coded explicitly to use it. (Though standard PHP apps such as Wordpress, Drupal, phpBB, MediaWiki, ... include this support by default).

    0 讨论(0)
提交回复
热议问题