Skip to content
Snippets Groups Projects
Commit 3ed13085 authored by Paal Joergensen's avatar Paal Joergensen
Browse files

Fixed caching bug [HFP-104]

parent 55e1f996
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ switch($action) {
}
hvp_restrict_library($library_id, $restrict);
header('Cache-Control', 'no-cache');
header('Cache-Control: no-cache');
header('Content-Type: application/json');
echo json_encode(array(
'url' => (new moodle_url('/mod/hvp/ajax.php', array(
......@@ -110,7 +110,7 @@ switch($action) {
$library = hvp_get_library_upgrade_info($library[0], $library[1], $library[2]);
header('Cache-Control', 'no-cache');
header('Cache-Control: no-cache');
header('Content-Type: application/json');
print json_encode($library);
......@@ -136,7 +136,7 @@ switch($action) {
if (filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'POST') {
$library_id = required_param('library_id', PARAM_INT);
$out = hvp_content_upgrade_progress($library_id);
header('Cache-Control', 'no-cache');
header('Cache-Control: no-cache');
header('Content-Type: application/json');
print json_encode($out);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment