I am trying to create a custom cache file that will not be deleted during the general clear cache call. This file will contain information on a large group resources that only needs to be updated if one of those resources is updated. I cannot find how to give the file a unique extension (something other than .cache.php) to avoid deletion. Has anyone done this before? Is there a better way to go about it?
Thanks for the quick response! I have looked for documentation on specifying a custom directory to save the cache in, but I haven’t found where this directory should be specified. Should it appear as a ’path’ key in an $options array in the getCacheProvider call? Also, with a custom cache provider, is there any type of initiation that needs to be setup prior to calling it? If so, is this where I specify the custom directory? If not, what’s the advantage of the custom provider other than organization?
Disregard my reply above. Now I see what you are referring to when you mention a custom cache provider, though I am still confused about setting a custom path/directory.