Cache directory on nodes with search role

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.16

Describe the issue:
By default, the cache directory is inside the path variable “path.data”, can we change the cache directory to another path?, thanks.

Configuration:

Relevant Logs or Screenshots: