Make your Laravel App Fly with PHP OPcache

Easy guide to enable and optimize OPcache for a faster application

Olav van Schie
Feb 7, 2017 · 4 min read

What is OPcache?

Talking numbers

Sounds awesome, how can I use it?

<?phpphpinfo();
opcache.enable=1
opcache.memory_consumption=512
opcache.interned_strings_buffer=64
opcache.max_accelerated_files=32531
opcache.validate_timestamps=0
opcache.save_comments=1
opcache.fast_shutdown=0

Prepare your Laravel App

Appstract

We are Appstract, a small team from The Netherlands.

Appstract

We are Appstract, a small team from The Netherlands. We create tools for PHP, Laravel & JavaScript and write about related subjects. Follow us on Twitter for the latest updates and interesting stuff!

Olav van Schie

Written by

Web developer. OSS @TeamAppstract, creator of @ReleaseWork

Appstract

We are Appstract, a small team from The Netherlands. We create tools for PHP, Laravel & JavaScript and write about related subjects. Follow us on Twitter for the latest updates and interesting stuff!

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Start a blog

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store