Would touch: true accomplish the same task?
Only if your cache key included the updated_at attribute or similar. Part of the issue is also when you have a collection of records as you might find in Russian Doll Caching. Even if the individual record's cache is expired, you will still need to expire the outer cache (parent cache) as well since it is stale at this point.
I am getting this error:
#<Mysql2::Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)>
I have a rails 5 app that is an API, I am getting this error:
It was working fine before I added the gem.
ActiveRecord::StatementInvalid (Mysql2::Error: Unknown column 'disclosure_forms.name' in 'where clause': SELECT disclosure_forms.* FROM disclosure_forms WHERE disclosure_forms.name = 'Chris Habgood' LIMIT 1):