ndejong / pfsense_fauxapi

REST based API interface for pfSense 2.3.x and 2.4.x to facilitate devops
Apache License 2.0
354 stars 61 forks source link

cleanup_backupcache() seems to be missing in 24.03 #88

Open bill-mcgonigle opened 3 months ago

bill-mcgonigle commented 3 months ago
[05-Jun-2024 13:17:04 EST5EDT] PHP Fatal error:  Uncaught Error: Call to undefined function cleanup_backupcache() in /etc/inc/fauxapi/fauxapi_pfsense_interface.inc:316

It looks like cleanup_backupcache() got refactored in 24.03. I think the new code is in syncBackupCache() ?

That's a private function that only seems to get called from getBackupList() . For now I commented out line 316 and it functions without causing problems that I noticed, other than /cf/conf/backups/ growing by one file per change. I'm not sure how to make the right call for the new code to do a cleanup.