diff --git a/plugin/lti_provider/db/lti13_cache.php b/plugin/lti_provider/db/lti13_cache.php index 8630b9a4d6..18804da5eb 100644 --- a/plugin/lti_provider/db/lti13_cache.php +++ b/plugin/lti_provider/db/lti13_cache.php @@ -36,7 +36,7 @@ class Lti13Cache implements Lti1p3Cache private function saveCache() { - file_put_contents(sys_get_temp_dir().'/lti_cache.txt', json_encode($this->cache)); + file_put_contents(api_get_path(SYS_ARCHIVE_PATH).'lti_cache.txt', json_encode($this->cache)); } public function cacheNonce($nonce): Lti13Cache