Skip to content

Commit ec2634c

Browse files
authored
Merge pull request #956 from petk/patch-apcu
Update APC and APCu
2 parents 3d14d90 + 250b9fb commit ec2634c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

_posts/14-02-01-Opcode-Cache.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

_posts/14-03-01-Object-Caching.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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');
3737
if ($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
4242
print_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 the APC extension which provided both an object cache and a bytecode cache. The new APCu is a project to bring APC's
4646
object 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)

0 commit comments

Comments
 (0)