Thanks. it seems i have to tweak my apc setting according to that link..The first and second results for that error message on Google has potential answers, see the answers from the php.net guys here: https://bugs.php.net/bug.php?id=58982
apc.cache_by_default 1
apc.canonicalize 1
apc.coredump_unmap 0
apc.enable_cli 1
apc.enabled 1
apc.file_md5 0
apc.file_update_protection 2
apc.filters
apc.gc_ttl 3600
apc.include_once_override 0
apc.lazy_classes 0
apc.lazy_functions 0
apc.max_file_size 20M
apc.mmap_file_mask
apc.num_files_hint 1000
apc.preload_path
apc.report_autofilter 0
apc.rfc1867 0
apc.rfc1867_freq 0
apc.rfc1867_name APC_UPLOAD_PROGRESS
apc.rfc1867_prefix upload_
apc.rfc1867_ttl 3600
apc.serializer default
apc.shm_segments 1
apc.shm_size 256M
apc.slam_defense 1
apc.stat 0
apc.stat_ctime 0
apc.ttl 0
apc.use_request_time 1
apc.user_entries_hint 4096
apc.user_ttl 7200
apc.write_lock 1
I just rebuilt my litespeed and i got "Your Opcache Operator extension is functioning, however it is unable to store data. Please check your extension configuration." again.Ensure that the variable storage is large enough and that the cacher is enabled
<?php
$bar = 'BAR';
apc_store('foo', $bar);
var_dump(apc_fetch('foo'));
?>
string(3) "BAR"
I tried to separate to 2 files, and apc_fetch sometimes failed, sometimes it is fine if i refresh it several times..The apc_store and apc_get would need to be called in two separate scripts to give an accurate test.
PHP:<?php $bar = 'BAR'; apc_store('foo', $bar); ?>
PHP:<?php var_dump(apc_fetch('foo')); ?>
Does it still produce the correct content?
bool(false)
string(3) "BAR"
That's me.. Thanks.semprot take a read of High APC Fragmentation - LiteSpeed Support Forums if that is same semprot on litespeed forums
We use essential cookies to make this site work, and optional cookies to enhance your experience.