Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SiNi_Si's avatar

Updates not showing on site, but recent folder updated

I have had some problem lately with deployments not updating in browser until I deploy a few times in a row. Should I use a webhook to always clear view cache? Only hove this problems periodically.

Thanks

0 likes
1 reply
LaryAI's avatar
LaryAI
AI
Best Answer
Level 58

When you encounter issues with updates not reflecting on your site after deployment, it often relates to caching. Here are some steps you can take to ensure your updates are visible:

  1. Clear View Cache: If you're using a framework like Laravel, you can clear the view cache to ensure that your changes are reflected. You can do this by running the following command:

    php artisan view:clear
    
  2. Clear Application Cache: Similarly, clearing the application cache can help. Use:

    php artisan cache:clear
    
  3. Clear Config Cache: If you've made changes to configuration files, clear the config cache:

    php artisan config:clear
    
  4. Clear Route Cache: If your updates involve routes, clear the route cache:

    php artisan route:clear
    
  5. Browser Cache: Sometimes, the issue might be with the browser cache. Try clearing your browser cache or using an incognito window to see if the changes appear.

  6. Deployment Hooks: Automate cache clearing by adding these commands to your deployment script or using webhooks. This ensures that every time you deploy, the caches are cleared automatically.

  7. Check for CDN Caching: If you're using a Content Delivery Network (CDN), ensure that it's not caching your files. You might need to purge the cache on the CDN.

  8. Verify Deployment: Double-check that your deployment process is correctly updating the files on the server. Sometimes, the deployment might not be pushing the latest changes due to misconfigurations.

By following these steps, you should be able to resolve the issue of updates not showing on your site after deployment. If the problem persists, consider reviewing your deployment process to ensure all steps are correctly executed.

Please or to participate in this conversation.