4 months ago
so i need to clear cache but i cant find that option anywhere
3 Replies
3 months ago
Hey @kdvysali,
To change the start command or clear the cache on Railway, you’ll want to head over to your Service Settings. Under the Builds section, you can configure things like the build and start commands. If you’re using something like a Procfile
, Railway will also respect that.
To clear the cache, there's no dedicated "clear cache" button, but you can force a fresh build by adding an environment variable. Just go to your Environment Variables section and add:
NO_CACHE = 1
Then redeploy the service — that will trigger Railway to skip the cache and rebuild everything from scratch.
Hope that helps! Let me know if you need a hand finding anything else.
3 months ago
What @mycodej said is correct I do not want to steal the answer from him but adding link to documentation for help https://docs.railway.com/reference/build-and-start-commands
3 months ago
I would use the cache it makes build time faster what is your use case to disable it? I can suggest alternatives