I have a strange issue in laravel 4 as each time I try to refresh the page changes doesn't appear . For sure it's not browser's cache . Any help appretiated
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Did you tried - composer dump-autoload and - php artisan dump-autoload From the document root ?
Sometimes OPcache method isn't working, I use this code to make sure all changes are visible every time the page is loaded:
in
app/filters.php
add this inApp::before(function($request)
I was having the same issues and found an answer:
Try disabling OPcache in your php.ini
If you use MAMP, it can be found at /Applications/MAMP/bin/php/php5.5.3/conf/php.ini
And dont forget to restart MAMP.
I had a similar problem with the back-button, finally i noticed, that in my Laravel project no
Cache-Control
header was sent. The browser decided to cache this page and didn't do a new request.To send this header, you can modify the
app/filters.php
file like this:This could be a problem with the cache engine. If you updated via composer, try getting /app folder updates from github (especially config files), sometimes there are changes in files in that folder. You could also try to chmod 777
storage
folder.