Is there a way to set the directory structure for the fragment cache?
Yes, you can use the following:
config.cache_store = :file_store, “/path/to/cache/directory”
know by default it is using Zlib.adler32 to generate the directory name
for a key.
Is there any way to configure this? I want to be able to clear the
fragment cache externally from the app by a different process.
It seems that :mem_cache_store may be what you’re looking for
because it uses a seperate process to manage an application’s
cache. However, it’s in memory instead of the disk. I would
recommend reading the following for additional information: