How to optimize Symfony using APC

This article describes how to optimize Symfony PHP framework code on a managed VPS using APC (Alternative PHP Cache).

Optimizing Symfony with APC

You can optimize your Symfony PHP framework code on a managed VPS to run faster. To do this, use the APC (Alternative PHP Cache) ApcClassLoader class in your code as follows:

$loader = new ApcClassLoader('namespace_prefix', $loader);
$loader->register(true);
The APC namespace prefix can be any value you want.

More Information

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.