Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Storing File In Cscart Cache Rate Topic   - - - - -

 
  • natewallis
  • Senior Member
  • Members
  • Join Date: 11-Jan 13
  • 202 posts

Posted 09 December 2019 - 02:14 AM #1

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... 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19982 posts

Posted 09 December 2019 - 05:58 AM #2

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • natewallis
  • Senior Member
  • Members
  • Join Date: 11-Jan 13
  • 202 posts

Posted 09 December 2019 - 06:11 AM #3

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. 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19982 posts

Posted 09 December 2019 - 01:35 PM #4

All functions related with files are located here

 

app/functions/fn.fs.php


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)