略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: APC

2024-12-23

Alternative PHP Cache (可选 PHP 缓存)

add a note add a note

User Contributed Notes 2 notes

up
8
umut dot kirgoz at gmail dot com
7 years ago
Since APC 3.1.3, there is a bug (http://pecl.php.net/bugs/bug.php?id=16814) which produces warnings like "Potential Cache Slam Averted for Key" when slam defense is on and you're trying to write a key that already exists.

These is not a fix right now for this, but you can change the APC settings from php.ini file like below if possible:

apc.write_lock = 1
apc.slam_defense = 0
up
5
mike at eastghost dot com
7 years ago
Was using Memcache and Memcached extensions, painfully bouncing between faults, failures and shortcomings of each.  My two cents: Neither of these old drivers has been a smash hit, repressing and slowly dooming of the true potential and full use of unix memcached.

The pain finally drove to me to try APC's apc_store and apc_fetch.  The results?  Instant success, no more errors, an order of magnitude (at least) speed boost, plus one less thing (memcached) to run.  Nice.  Never going back again.  Thank y'all.

官方地址:https://www.php.net/manual/en/book.apc.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3