Skip to content
  • John Hawthorn's avatar
    d445ceb9
    Make Template::Resolver always cache · d445ceb9
    John Hawthorn authored
    All actionview caches are already cleared at the start of each request
    (when Resolver.caching is false) by PerExecutionDigestCacheExpiry, which
    calls LookupContext::DetailsKey.clear (which clears all caches).
    
    Because caches are always cleared per-request in dev, we shouldn't need
    this extra logic to compare mtimes and conditionally reload templates.
    
    This should make templates slightly faster in development (particularly
    multiple renders of the same template)
    d445ceb9
    Make Template::Resolver always cache
    John Hawthorn authored
    All actionview caches are already cleared at the start of each request
    (when Resolver.caching is false) by PerExecutionDigestCacheExpiry, which
    calls LookupContext::DetailsKey.clear (which clears all caches).
    
    Because caches are always cleared per-request in dev, we shouldn't need
    this extra logic to compare mtimes and conditionally reload templates.
    
    This should make templates slightly faster in development (particularly
    multiple renders of the same template)
Loading