Build cache for Ruby/Rails projects

Over here it says

Render already caches well known paths for all native language environments.

Which paths/directories exactly are cached for Ruby/Rails projects?
I couldn’t find them anywhere in the docs.
When I check $XDG_CACHE_HOME on the instance, it only contains “/opt/render/.cache”.

Render automatically caches all files in the following directories:

  • /opt/render/project/.gems
  • /opt/render/project/nodes
  • /opt/render/project/src/.venv
  • /opt/render/project/.render
  • /opt/render/project/rubies
  • /opt/render/project/src/node_modules

You can cache additional directories by adding them to the $XDG_CACHE_HOME environment variable.

I can definitely see how it would be useful to have this information documented. I’ll share this with the product team.

1 Like

Thanks, @jake!

All of them make sense to me, except for src/.venv, which I’ve never seen before.
What is that one for?

No problem!

.venv is used when managing Python virtual environments. It’s cached in all environments by default.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.