Skip to content

Commit

Permalink
chore: Update ParserCache.php to include debug logging for cache set …
Browse files Browse the repository at this point in the history
…operation
  • Loading branch information
ZoruaFox committed Jun 29, 2024
1 parent d7d7b8a commit fbd67ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/parser/ParserCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,12 +474,15 @@ public function save(
}

// Save the parser output
$this->cache->set(
$ret = $this->cache->set(
$parserOutputKey,
$parserOutputData,
$expire,
BagOStuff::WRITE_ALLOW_SEGMENTS
);
$jsonstr = substr($parserOutputData, 0, 20);
$origstr = substr($parserOutput->getRawText(), 0, 20);
wfDebugLog('pcd', "$ret; e: $expire; k: $parserOutputKey; d: $jsonstr; o: $origstr");

// ...and its pointer to the local cache.
$this->metadataProcCache->set( $pageKey, $metadataData, $expire );
Expand Down

0 comments on commit fbd67ba

Please sign in to comment.