开发者

How to share APC cache between apache and php_cli?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜