I've readed in some blogs that apache and php_cli don't share APC data because are running in different processes...
But, I need use the same data cached in Apache (user in browser) and cron processes (php_cli).
开发者_开发百科How to do it?
I've tried to access some keys from php_cli and it really can't get it.
Some idea?
It's not possible using APC's data cache. The data is in shared memory that is only available inside Apache. The only alternative would to be use some sort of external storage. Depending on your exact needs, this could be as simple as a text file, or as complex as a relational database, NoSQL database, or other key-value store like memcached.
精彩评论