Ori.livneh has uploaded a new change for review. https://gerrit.wikimedia.org/r/279538
Change subject: Request-local caching of image_redirect ...................................................................... Request-local caching of image_redirect LocalRepo::checkRedirect() cache image redirect checks in memory to avoid unnecessary trips to memcached. Same idea as Idbd11637. Change-Id: Idaa12376382aaa0bd8cb988240ec1da0b688359d --- M includes/filerepo/LocalRepo.php 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/38/279538/1 diff --git a/includes/filerepo/LocalRepo.php b/includes/filerepo/LocalRepo.php index d24aa24..d038d93 100644 --- a/includes/filerepo/LocalRepo.php +++ b/includes/filerepo/LocalRepo.php @@ -226,7 +226,8 @@ return ( $row && $row->rd_namespace == NS_FILE ) ? Title::makeTitle( $row->rd_namespace, $row->rd_title )->getDBkey() : ''; // negative cache - } + }, + [ 'pcTTL' => $expiry ] ); // @note: also checks " " for b/c -- To view, visit https://gerrit.wikimedia.org/r/279538 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idaa12376382aaa0bd8cb988240ec1da0b688359d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Ori.livneh <o...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits