Deleting the cache for blade templates




My blade template isn’t updating. I reverted some breaking changes to the template and it’s not correctly reloading on the site.

I deleted the upload/cache directory. Is there anything else I need to do?


Deleting the upload/cache directory wipes out all your cached blades, which will cause them to be re-rendered. This can take a couple minutes (they seem to get kind of…cached somewhere else?) but it will work.

If you deleted the cache folder a while ago, and you’re still seeing issues, I’d guess one of the following is happening:

  • The error you were trying to correct in your templates is still there.
  • If this site is on a live server, the files may still be cached elsewhere (by the server, depending on your configuration, or something else like Cloudflare).
  • If the site is on a live server and you’re using Trellis, Trellis deploys do not (by default) regenerate or wipe out blade caches, so deleting your local cache will have no effect on your remote site.
  • You’ve somehow accidentally reconfigured your theme to store templates in another location, and haven’t wiped that location (this seems very unlikely).

If you could post some of the code in question, it might help with debugging.


@alwaysblank Do you know where this “somewhere else…” location is?

I’ve been trying to figure out how to get a normal dev workflow going but this cache is making it nearly impossible, clearing it out every so often is sort of working but I still see the same old files for about 10 minutes after I delete the cache.