you have access to all of the normal MediaWiki so you can get a DB use the cache
static getFileContentsHash( $filePaths, $algo='md4')
Get a hash of the combined contents of one or more files, either by retrieving a previously-computed ...
getFileContentsHashInternal( $filePath, $algo='md4')
Get a hash of a file's contents, either by retrieving a previously- computed hash from the cache,...
static FileContentsHasher $instance
static singleton()
Get the singleton instance of this class.