Skip to content

Commit

Permalink
Moved cookies to temp request dir for parallel workers #193
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood committed Feb 4, 2025
1 parent caf01c9 commit 337bb2b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion classes/robot/crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,11 @@ private static function determine_filesize($curlhandle, $method, $success, $body
public function scrape($url) {

global $CFG;
$cookiefilelocation = $CFG->dataroot . '/tool_crawler_cookies.txt';

static $cookiefilelocaion = '';
if (!$cookiefilelocation) {
$cookiefilelocation = make_request_directory() . '/tool_crawler_cookies.txt';
}
$config = self::get_config();

$version = moodle_major_version();
Expand Down

0 comments on commit 337bb2b

Please sign in to comment.