Setting up the XCache Cache Driver

Problem

You want to speed up Laravel's cache.

You know by default Laravel uses the file cache driver. You want to use a speedier cache.

Solution

Use the XCache cache driver.

Edit app/config/cache.php and change the driver to 'xcache'.

    'driver' => 'xcache',

Discussion

To use the cache driver make sure XCache is installed and set up first. See the Installing XCache recipe for details.

You must change the xcache.var_size setting as described in the Installing XCache recipe for XCache to work with Laravel.

comments powered by Disqus