Skip to content

Commit 337bb2b

Browse files
Moved cookies to temp request dir for parallel workers #193
1 parent caf01c9 commit 337bb2b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

classes/robot/crawler.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,11 @@ private static function determine_filesize($curlhandle, $method, $success, $body
10891089
public function scrape($url) {
10901090

10911091
global $CFG;
1092-
$cookiefilelocation = $CFG->dataroot . '/tool_crawler_cookies.txt';
1092+
1093+
static $cookiefilelocaion = '';
1094+
if (!$cookiefilelocation) {
1095+
$cookiefilelocation = make_request_directory() . '/tool_crawler_cookies.txt';
1096+
}
10931097
$config = self::get_config();
10941098

10951099
$version = moodle_major_version();

0 commit comments

Comments
 (0)