Skip to content
Advertisement

Laravel templates/controllers not updating on save

I’m running a Laravel 4 for a simple app on OS X.

Basically, changes to controllers and templates don’t take effect for a long time after I save changes to those files. For example, I add a word to /app/views/index.blade.php, and don’t see any change when constantly refreshing my browser for another minute or so. This makes iterative development understandably painful.

I have tried to chmod 777 app/storage/ and all enclosed files, which has no effect. I have also verified this is not a browser cache issue, because it happens (a) in both Chrome and Safari, and (b) regardless of clearing the cache in those browsers. The problem still occurs even when the app is in “local” and not “production” mode.

I should mention that I am running an updated DP version of OS X 10.9 Mavericks. I can’t imagine that would have any effect on Laravel, though.

Edit

I tried calling clearstatcache() in start.php to see if that had any effect, and the problem still remained.

Advertisement

Answer

I was able to fix the issue by uninstalling MAMP (the app package), then installing PHP, Nginx, and MySQL with homebrew. Now all of my templates update, yay! I am pretty sure that the problem lied with the combination of Apache and Mavericks.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement