class_docstr: Subclass that also caches the stamp of the file
docstr: Get the cached data for the given filename
  if the file has not been modified.
  
  If no record exists or file has been modified, return default.
  Modification is checked by comparing the cached
  and current file stamp.
docstr_tok: ["Get","the","cached","data","for","the","given","filename","if","the","file","has","not","been","modified",".","If","no","record","exists","or","file","has","been","modified",",","return","default",".","Modification","is","checked","by","comparing","the","cached","and","current","file","stamp","."]
code: def get_cached_data(self, filename, default=None):
      """Get the cached data for the given filename
      if the file has not been modified.
  
      If no record exists or file has been modified, return default.
      Modification is checked by comparing the cached
      and current file stamp.
      """
  
      stamp, data = super().get_cached_data(filename, (None, default))
      if stamp != self._get_file_stamp(filename):
          return default
      return data
  
file_path: pelican/pelican/cache.py
imports: import hashlib
  import logging
  import os
  import pickle
  from pelican.utils import mkdir_p
label_desc: Use image node_id 4 for calling the FileStampDataCacher obj's underlying member method code with example usage: obj.get_cached_data(filename, default) and returns: data, default