Storing File In Cscart Cache

Hi,

I am developing an addon that generates product brochure PDF files for customers.

Currently I am rolled my own solution when it comes to caching generated files, but I wonder if I have overlooked CS-CART's caching abilities. Is there a standard set of function calls to store files within the CS-CART directory structure?

Thanks...

CS-Cart algorithms are simple here. If file exits in the cache directory, return this file. If not, generate. There are no special functions for it

Cool - what are the function calls to save a file to the cache? so that it goes in the /var/cache folder?

Will do some digging, but just in case someone knows them off the top of their head.

All functions related with files are located here

app/functions/fn.fs.php