> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Optimizing Symfony using APC

> Optimize Symfony PHP on a managed VPS with APC using this guide and code snippet.

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);
```

<Note>
  The APC namespace prefix can be any value you want.
</Note>

## More information

* For more information about how to optimize Symfony, please visit [http://symfony.com/doc/current/book/performance.html](http://symfony.com/doc/current/book/performance.html).

* For more information about the Symfony **ApcClassLoader** class, please visit [http://api.symfony.com/2.5/Symfony/Component/ClassLoader/ApcClassLoader.html](http://api.symfony.com/2.5/Symfony/Component/ClassLoader/ApcClassLoader.html).
