I have websites developed in PHP. Im using Opcode cache.
But because Opcode cache like eAccelerator or开发者_运维知识库 APC is cached in RAM, I needs too much RAM.
So Im looking for any project or technique which cache the PHP Opcode in hard disk.
Thanks so much
(my website is not generate money, so Im thinking about cheaper solution)
all op-code caches allow you to configure the maximum size of shared memory used (look for a configuration option with shm - for SHared Memory - in the name, eg. apc.shm_size
). so you can control that they don't use too much ram.
some caches also allow you to cache on disk instead/besides of caching in ram:
- eAccelerator
the question is if a small amount of shared memory or a disk only cache gains you anything in performance compared to plain php without op-code cache. as always when using a cache, you should benchmark this.
精彩评论