Are you sure it's not a client-side browser cache issue?
Laravel elixir file_get_contents cache?
When Elixir does file_get_contents to parse the rev-manifest.json file, does that data get cached somewhere? We are having issues with our deployments. When we deploy we sort of do what Envoyer does whereby we create a new release in a releases folder, do the deployment of the code, and then when its complete we re-point our nginx set folder to the new timestamped release folder.
The strange thing is that for a while after this process, somehow our files are still looking for the old revisioned js and css files from the previous rev-manifest.json file, even though the current web folder is the new release folder. So the data from rev-manifest.json is being cached somewhere.
We have tried clearing all know caches which to my under standing are /storage/framework/cache and /storage/framework/views. We also run php artisan cache:clear, php artisan view:clear, php artisan optimize, composer dump-autoload. Yet for up to an hour the site still tries to use the old css and js files which do not exist in the newly made release folder and thus throw a 404.
Interested to see if anyone has any thoughts. Are there other caches I don't know about?
Ok everyone. Found the answer. So yeah the issue is that on php versions greater than 5.5, symlinks cache in a very unpredictable way. So the short answer is to restart php-fpm at the end of the process. Envoyer does this as well.
Here is a nice post on it.
http://codinghobo.com/opcache-and-symlink-based-deployments/
Please or to participate in this conversation.