From 87f796f50bed9fc915cfc22bd115597b752e57c0 Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Tue, 10 Nov 2015 00:09:39 -0800 Subject: [PATCH] #4: Don't try re-encoding master files when rebuilding the track cache. --- app/Console/Commands/RebuildTrackCache.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/RebuildTrackCache.php b/app/Console/Commands/RebuildTrackCache.php index 510236ba..5b4386d1 100644 --- a/app/Console/Commands/RebuildTrackCache.php +++ b/app/Console/Commands/RebuildTrackCache.php @@ -221,7 +221,9 @@ class RebuildTrackCache extends Command $count = 0; // Chunk non-cacheable track files - TrackFile::where('is_cacheable', false)->chunk(200, function ($trackFiles) use (&$count) { + TrackFile::where('is_cacheable', false) + ->where('is_master', false) + ->chunk(200, function ($trackFiles) use (&$count) { $this->output->newLine(1); $this->info('---------- Start Chunk ----------');