Server error on registering people for events
CiviCRM 5.33.2 with civmoodle installed. Under some circumstances registering a person for an event causes a server error message to be presented.
Investigated and found
Error: Call to undefined method CRM_Core_BAO_Cache::setItem() in civimoodle_civicrm_post() (line 221 of /srv/web/climatebonds.net/web/files/civicrm/ext/biz.jmaconsulting.civimoodle/civimoodle.php).
Error: Call to undefined method CRM_Core_BAO_Cache::deleteGroup() in
civimoodle_civicrm_post() (line 220 of
DeleteGroup also in line 109.
Lint checker also finds an error at
$courses = CRM_Core_BAO_Cache::getItem("moodle courses", 'civimoodle_civicrm_post');