kreut Posted August 12, 2011 Share Posted August 12, 2011 Hello, I began programming several months ago with PHP and am beginning to feel comfortable with the programming aspect (it's the first language I've used). I'm now looking into optimizing my website and have found CloudFlare to (easily) use to cache my javascript/css files. I've now learned that I can use APC to do the same thing with my php files. But, this is uncharted territory, and I feel a bit of a noob. But, you've got to start somewhere! 1. By APC "caching unchanging php files", what does this mean exactly? For example, my understanding would be that if I have a php script that defines functions, that this would be cached since the script won't change. However, in another script that dynamically generates variables, would the script itself sans the changing variables be cached as well? And does "caching" the script mean that 1 user who visits multiple times won't have the script recompiled? Or, once cached, any user who uses that script will use the cached version? Seems a bit like withcraft at this point. 2. This article: http://www.debian-administration.org/articles/574 made it seem "simple" to install --- that is, except for someone who doesn't know how to get to the "input screen". (I do have cPanel and have the option to install Pear packages, but never have done so). If someone could help pull away the curtain of the behind the scenes world of APC, I'd appreciate it! Thank you, Eric Quote Link to comment https://forums.phpfreaks.com/topic/244651-very-noobish-apc-questions/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.