title: Laravel - cache partial view during a foreach loop
body: <p>How can I cache a blade file?</p>
  
  <p>Sample code:</p>
  
  <pre><code>@foreach ($files as $file)
     @include('partials.file')
  @endforeach
  </code></pre>
  
  <p>If there are 100 files, then the blade will load 100 times. Is there a way to cache it or something? If there are queries in the partial blade file, it may take a long time.</p>
  
  <p>What is the best way to do this? Thanks!</p>