Skip to content

Commit

Permalink
Update expandFns.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Jan 20, 2024
1 parent 26260f0 commit fa2f990
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions expandFns.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
require_once 'Template.php'; // @codeCoverageIgnore
require_once 'big_jobs.php'; // @codeCoverageIgnore


// Allow cheap journals to work
if (!defined(CONTEXT_INSECURE)) {

Check failure on line 10 in expandFns.php

View workflow job for this annotation

GitHub Actions / build

Constant CONTEXT_INSECURE not found.
define('CONTEXT_INSECURE', stream_context_create(array(
'ssl' => ['verify_peer' => FALSE, 'verify_peer_name' => FALSE, 'allow_self_signed' => TRUE, 'security_level' => 0, 'verify_depth' => 0],
'http' => ['ignore_errors' => TRUE, 'max_redirects' => 40, 'timeout' => BOT_HTTP_TIMEOUT * 1.0, 'follow_location' => 1, 'header'=> ['Connection: close'], "user_agent" => BOT_USER_AGENT]))
);
}

final class HandleCache {
// Greatly speed-up by having one array of each kind and only look for hash keys, not values
private const MAX_CACHE_SIZE = 100000;
Expand Down

0 comments on commit fa2f990

Please sign in to comment.