I'm seeing a lot of recommendations around various places to install and use APC opcode cache framework.
http://pecl.php.net/package/APC
Is there any reason NOT to want to use APC? Or would you guys definitely recommend using it as well? I really don't know anything about caching other than the it's used to speed things up. I also know there are other opcode cache options as well, like eAccelerator, memcache or XCache... of which is the best I have no idea.
So, I'm kinda looking for some quick guidance... should I install APC? I run all kinds of php/mysql scripts, forums, photo galleries, blogs, etc...
Thanks!
Any reason not to install APC?
Moderator: General Moderators
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
Re: Any reason not to install APC?
If you're running on a shared box, be careful with the usage of some of it's functions (if you're not just using it as a drop-in replacement).. because I believe if you do something like apc_store('config').. and someone else uses the same value on your server.. it could either be overwritten or deleted from another user using apc_delete('config'). Instead use names like apc_store('myuniqueapp_config').. etc.
I've never used APC myself, I just read that somewhere.
I've never used APC myself, I just read that somewhere.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
Re: Any reason not to install APC?
Thanks for the word on that... however, luckily it would be for a dedicated box, with only my accounts.scottayy wrote:If you're running on a shared box, be careful with the usage of some of it's functions
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: Any reason not to install APC?
I have heard nothing but good things as it relates to APC. I was thinking about using memchaced, but was told that APC is better. I will be looking deeper into this very soon.
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
Re: Any reason not to install APC?
I was wondering if there is any visible different to the end-user when a server is using APC? In other words, are there delays in getting "updated information" on things like news sites or forums, etc? I've never really dealt with caching before, so I wasn't sure if it's entirely seamless to the end-user (visitors) or not.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: Any reason not to install APC?
I would think not since the point of APC, memcached, et al is to serve content from cache thereby being faster serves. I would guess.