doctrine / mongodb-odm

The Official PHP MongoDB ORM/ODM
https://www.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/
MIT License
1.09k stars 504 forks source link

Alternative to APC in PHP5.6 #993

Closed bensquire closed 8 years ago

bensquire commented 9 years ago

Hi Guys,

I'm looking to upgrade our systems to PHP5.6, but I noticed that APC (which we use) has been removed and replaced with opCache. What would be the recommended course of action? Install APCu or xCache or have I missed something?

Thanks Ben

solocommand commented 9 years ago

Are you using apc_store to store arbitrary data or just utilizing opcode caching? If you aren't storing anything custom, then opCache is a drop-in replacement for APC. If you were storing custom data, then you would have to use APCu or XCache.

You'd probably get a more detailed response from one of those projects rather than this one :)

henrikbjorn commented 9 years ago

As this is for mongodb-odm i would suspect he means the caching provided by the library, which uses apc_store. For that APCu is a good alternative.

solocommand commented 9 years ago

@henrikbjorn My mistake. I actually had no idea odm did that :P

bensquire commented 9 years ago

Thanks both for replying to this. @henrikbjorn your suspicion is correct. I'll give APCu a try. If its known to work, it might be worth amending the documentation?

malarzm commented 8 years ago

I think now we all know about APCu, closing issue :)