The backend for cache API for PETA latino donation form
- Creates a new text file (
/shared/fixer-io.txt) that contains the data for the currency rates - The cache text files last one day before calling in the fixer.io API to prevent calling the fixer.io API multiple times when the donation form for the PETA latino loads
- Does not create a new text file if the URL is invalid or it has reached the limit to call the API
- Echoes the error when the cache API has an error
- Set the HTTP status code for the
uptime-monitor.phpif the modified cachee file is more than 1 day and 30 minutes to alert uptime monitor
- You need to have a writeable
/shared/folder under yourDOCUMENT_ROOTfor this script to work. - Require personal access token from 4site in order to automatically create a Github issue