PHP APC kullanarak kullanıcı ve sistem önbelleklerini arasındaki fark

1 Cevap php

1 Cevap

They are different caches. One is not better than others. You can find about The system cache consists of cached files (PHP bytecode cache). For instance this call will create system cache:

$file = "foobar.php";
apc_compile_file($file);

Diğer yandan, kullanıcı önbellek programı veri

$silly_text = "Lorem ipsum dolor sit amet";
apc_store("silly", $silly_text);

Bazı durumlarda, bu olabilir time consuming to call apc_clear_cache ve sunucuyu yeniden başlatmadan yerine önbelleğini temizleyerek daha iyi olabilir.