How do I prevent ActiveRecord::PreparedStatementCacheExpired errors during deploys?
I'm using Hatchbox to deploy my Rails 7 application.
However, occasionally during deployment, I encounter the ActiveRecord::PreparedStatementCacheExpired error.
How can I avoid this issue to ensure uninterrupted deployments?
I had this too. Make sure to warm up your app before deploying, and check your database connection pool settings. It helps prevent those annoying cache errors during deploys.