title: Laravel queues - freeing up memory
body: <p>Laravel <a href="https://laravel.com/docs/5.5/queues#running-the-queue-worker" rel="nofollow noreferrer">5.5 docs</a> mention that:</p>
  
  <blockquote>
    <p>Daemon queue workers do not "reboot" the framework before processing each job. Therefore, you should free any heavy resources after each job completes. For example, if you are doing image manipulation with the GD library, you should <em>free the memory</em> with <code>imagedestroy</code> when you are done.</p>
  </blockquote>
  
  <p>Where exactly should I free up the memory? Within the <code>handle</code> method of the job itself?
  At this point, I need to use queues just to send emails and push data to Zapier/IFTTT. Should I even worry about freeing up the memory for such uses?</p>