Plugin: LTI Provider: Change temp path for cache path - refs #3894

pull/3944/head
Yannick Warnier 4 years ago
parent ecb28fb067
commit 3f74e1fc2c
  1. 4
      plugin/lti_provider/db/lti13_cache.php

@ -18,9 +18,9 @@ class Lti13Cache implements Lti1p3Cache
private function loadCache()
{
$cache = file_get_contents(sys_get_temp_dir().'/lti_cache.txt');
$cache = file_get_contents(api_get_path(SYS_ARCHIVE_PATH).'lti_cache.txt');
if (empty($cache)) {
file_put_contents(sys_get_temp_dir().'/lti_cache.txt', '{}');
file_put_contents(api_get_path(SYS_ARCHIVE_PATH).'lti_cache.txt', '{}');
$this->cache = [];
}
$this->cache = json_decode($cache, true);

Loading…
Cancel
Save