Our server is filling up fast with cached images in the /cache/images directory.
Most of them seem to be related to imported emails (attached images) and seem to be duplicates of the same file (without the filetype extension in the filename) in the /uploads directory.
I deleted an example file from /cache/images and could still view that attachment via SuiteCRM (I assume because it’s still in the /upload folder). The file was not re-added to the /cache/images directory when downloading the attachment from SuiteCRM.
Also: When searching the file ID for these image files in the database I always find two occurences:
This is the normal place for attachments.
We used to use AOD for global search, not anymore though. Does AOD create these duplicate files in cache/images?
(We’re currently not using AOD anymore, so if /cache/images is AOD-related I’d like to clean it out)
Can the entire folder contents of /cache/images be deleted from time to time? Or are certain files unique and will be missed if deleted? I couldn’t find any up-to-date documentation on this for SuiteCRM.
That is useful for many things, actually. For this case, it could help you track when exactly that directory is written to, and when it is read. You could even track a single file, try deleting it, and see if there are any subsequent read errors, or if it is recreated, etc.