$bar = 'BAR';
apc_store('foo', $bar);
var_dump(apc_fetch('foo'));
Dentro de una solicitud de este trabajo.apc_store no funciona entre las solicitudes
Ahora si trato de hacer un var_dump(apc_fetch('foo'));
en otra solicitud que se imprime:
bool(false)
Cualquier ayuda?
estoy en gentoo con PHP 5.2, APC-3.1.9
Aquí lo phpinfo() sabe acerca de APC:
APC Support enabled
Version 3.1.9
APC Debugging Disabled
MMAP Support Enabled
MMAP File Mask no value
Locking type pthread mutex Locks
Serialization Support php
Revision $Revision: 308812 $
Build Date May 27 2011 13:14:20
Directive Local Value Master Value
apc.cache_by_default On On
apc.canonicalize On On
apc.coredump_unmap Off Off
apc.enable_cli Off Off
apc.enabled On On
apc.file_md5 Off Off
apc.file_update_protection 2 2
apc.filters no value no value
apc.gc_ttl 3600 3600
apc.include_once_override Off Off
apc.lazy_classes Off Off
apc.lazy_functions Off Off
apc.max_file_size 1M 1M
apc.mmap_file_mask no value no value
apc.num_files_hint 1000 1000
apc.preload_path no value no value
apc.report_autofilter Off Off
apc.rfc1867 Off Off
apc.rfc1867_freq 0 0
apc.rfc1867_name APC_UPLOAD_PROGRESS APC_UPLOAD_PROGRESS
apc.rfc1867_prefix upload_ upload_
apc.rfc1867_ttl 3600 3600
apc.serializer default default
apc.shm_segments 1 1
apc.shm_size 32M 32M
apc.slam_defense On On
apc.stat On On
apc.stat_ctime Off Off
apc.ttl 0 0
apc.use_request_time On On
apc.user_entries_hint 4096 4096
apc.user_ttl 0 0
apc.write_lock On On
Si necesita otras informaciones por favor, dígame
Aquí es como lo instalé: https://serverfault.com/questions/274261/failed-installing-apc
Me di cuenta de una cosa: en el comando phpinfo 'Configurar no encontré la APC
'./configure' '-cli --disable' '--disable-descarte-path' '--disable-force-cgi-redirect' '--prefix =/usr/local/php5 ' ' --with-config-file-path =/usr/local/lib/php5 '' --with-pear =/usr/share/php5 ' ' --enable-exif '' --enable- ftp ' ' --enable-bcmath '' --enable-calendar ' ' --with-gd '' --enable-gd-native-ttf ' ' --with-freetype-dir '' --con -gettext ' ' --with-zlib-dir '' --with-imap ' ' --with-imap-ssl ' ' --with-png-dir =/usr ' ' --with-jpeg -dir =/usr ' ' --with-xpm-dir =/usr '' --with-o ' ' --with-kerberos '' --enable-sysvsem ' ' --enable-sysvshm '' --with-mcrypt ' ' --with-iconv '' --enable-mbstring = all ' 'enable-mbregex' '--with-mysql =/usr' '--with-mysqli' '--con-rizo' '--con-XSL'
¿Qué versión de APC? –
@aj: descargo lo último: APC-3.1.9 – dynamic