File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,12 @@ Read more about opcode caches:
1515
1616* [ Zend OPcache] [ opcache-book ] (bundled with PHP since 5.5)
1717* Zend OPcache (formerly known as Zend Optimizer+) is now [ open source] [ Zend Optimizer+ ]
18- * [ APC] - PHP 5.4 and earlier
1918* [ WinCache] (extension for MS Windows Server)
2019* [ list of PHP accelerators on Wikipedia] [ PHP_accelerators ]
2120* [ PHP Preloading] - PHP >= 7.4
2221
2322
2423[ opcache-book ] : https://secure.php.net/book.opcache
25- [ APC ] : https://www.php.net/book.apcu
2624[ Zend Optimizer+ ] : https://github.com/zendtech/ZendOptimizerPlus
2725[ WinCache ] : https://www.iis.net/downloads/microsoft/wincache-extension
2826[ PHP_accelerators ] : https://wikipedia.org/wiki/List_of_PHP_accelerators
Original file line number Diff line number Diff line change @@ -33,22 +33,22 @@ Example logic using APCu:
3333{% highlight php %}
3434<? php
3535// check if there is data saved as 'expensive_data' in cache
36- $data = apc_fetch ('expensive_data');
36+ $data = apcu_fetch ('expensive_data');
3737if ($data === false) {
3838 // data is not in cache; save result of expensive call for later use
39- apc_add ('expensive_data', $data = get_expensive_data());
39+ apcu_add ('expensive_data', $data = get_expensive_data());
4040}
4141
4242print_r($data);
4343{% endhighlight %}
4444
45- Note that prior to PHP 5.5, APC provides both an object cache and a bytecode cache. APCu is a project to bring APC's
45+ Note that prior to PHP 5.5, there was APC extension which provided both an object cache and a bytecode cache. The new APCu is a project to bring APC's
4646object cache to PHP 5.5+, since PHP now has a built-in bytecode cache (OPcache).
4747
4848### Learn more about popular object caching systems:
4949
5050* [APCu](https://github.com/krakjoe/apcu)
51- * [APC Functions ](https://secure .php.net/ref.apc )
51+ * [APCu Documentation ](https://www .php.net/apcu )
5252* [Memcached](https://memcached.org/)
5353* [Redis](https://redis.io/)
5454* [WinCache Functions](https://secure.php.net/ref.wincache)
You can’t perform that action at this time.
0 commit comments