+ /**
+ * @var ParserCache
+ */
+ private $parserCache;
+
+ /**
+ * @param Title $title The title of the page for which to update category emmbership.
+ * @param string $revisionTimestamp The timestamp of the new revision that triggered the job.
+ * @return JobSpecification
+ */
+ public static function newSpec( Title $title, $revisionTimestamp ) {
+ return new JobSpecification(
+ 'categoryMembershipChange',
+ [
+ 'pageId' => $title->getArticleID(),
+ 'revTimestamp' => $revisionTimestamp,
+ ],
+ [],
+ $title
+ );
+ }
+
+ /**
+ * Constructor for use by the Job Queue infrastructure.
+ * @note Don't call this when queueing a new instance, use newSpec() instead.
+ */
+ public function __construct( ParserCache $parserCache, Title $title, array $params ) {