def compile(self, source, name=None, filename=None, raw=False, defer_init=False):
    'Compile the template.'
    if ((name is not None) or (filename is not None) or (raw is not False) or (defer_init is not False)):
        return super().compile(source, name, filename, raw, defer_init)
    cached = self.template_cache.get(source)
    if (cached is None):
        cached = self.template_cache[source] = super().compile(source)
    return cached
Compile the template.
def compile(self, source, name=None, filename=None, raw=False, defer_init=False):
    
    if ((name is not None) or (filename is not None) or (raw is not False) or (defer_init is not False)):
        return super().compile(source, name, filename, raw, defer_init)
    cached = self.template_cache.get(source)
    if (cached is None):
        cached = self.template_cache[source] = super().compile(source)
    return cached