X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiStashEdit.php;h=ab9ae8e4e1d8bd4489086eb2751a2bdfba33dc84;hp=a3e3e575e71c372a599433be328ee6facec02885;hb=74d04edec385aa86ee01943b9a27475d79f74e78;hpb=eb5fe55cd5826b933bd6daf1b30614e2bc847e0a diff --git a/includes/api/ApiStashEdit.php b/includes/api/ApiStashEdit.php index a3e3e575e7..ab9ae8e4e1 100644 --- a/includes/api/ApiStashEdit.php +++ b/includes/api/ApiStashEdit.php @@ -234,6 +234,7 @@ class ApiStashEdit extends ApiBase { return self::ERROR_CACHE; } } else { + // @todo Doesn't seem reachable, see @todo in buildStashValue $logger->info( "Uncacheable parser output for key '{cachekey}' ('{title}') [{code}].", [ 'cachekey' => $key, 'title' => $titleStr, 'code' => $code ] ); return self::ERROR_UNCACHEABLE; @@ -410,6 +411,9 @@ class ApiStashEdit extends ApiBase { } if ( $ttl <= 0 ) { + // @todo It doesn't seem like this can occur, because it would mean an entry older than + // getCacheExpiry() seconds, which is much longer than PRESUME_FRESH_TTL_SEC, and + // anything older than PRESUME_FRESH_TTL_SEC will have been thrown out already. return [ null, 0, 'no_ttl' ]; }