Skip to content

Commit

Permalink
fix: use strict equality to test rewrite cache hit
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed Apr 25, 2020
1 parent 1e133bb commit 1624393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php-classes/Gatekeeper/Endpoints/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public function applyRewrites($url)
$cacheKey = "endpoints/$this->ID/rewrites";

// get ordered list of rewrites
if (false == ($rewriteIDs = Cache::fetch($cacheKey))) {
if (false === ($rewriteIDs = Cache::fetch($cacheKey))) {
$rewriteIDs = array_map(function($Rewrite) {
return $Rewrite->ID;
}, $this->Rewrites);
Expand Down

0 comments on commit 1624393

Please sign in to comment.