Support the ongoing development of Laravel.io →
Configuration Cache Eloquent

The old forums either had no solution for this, OR said the issue was solved by switching to file caching, but that's not a real solution.

I think the cause was that eager loading was using all available RAM, and then dying when it ran out. By caching to a file instead of APC, RAM usage was reduced and the issue went away.

The other way to fix it is to keep using APC, but increase the amount of RAM available to your VM (I increased mine from 2GB to 4GB and the issue went away).

Turns out eager loading (or caching the eagerly-loaded) is a little RAM-hungry.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

lofye lofye Joined 6 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.