You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!$this->variablesChanged() && $this->isCached($fileNameCSS, $app)) {
150
151
// Inject icons vars css if any
151
152
return$this->injectCssVariablesIfAny();
@@ -161,23 +162,25 @@ public function process(string $root, string $file, string $app): bool {
161
162
$lockKey = $webDir . '/' . $fileNameSCSS;
162
163
163
164
if (!$this->lockingCache->add($lockKey, 'locked!', 120)) {
165
+
$this->logger->debug('SCSSCacher::process could not get lock for ' . $lockKey . ' and will wait 10 seconds for cached file to be available', ['app' => 'scss_cacher']);
164
166
$retry = 0;
165
167
sleep(1);
166
168
while ($retry < 10) {
169
+
$this->logger->debug('SCSSCacher::process check in while loop follows', ['app' => 'scss_cacher']);
167
170
if (!$this->variablesChanged() && $this->isCached($fileNameCSS, $app)) {
168
171
// Inject icons vars css if any
169
172
$this->lockingCache->remove($lockKey);
170
-
$this->logger->debug('SCSSCacher:' .$lockKey.' is now available after '.$retry.'s. Moving on...', ['app' => 'core']);
173
+
$this->logger->debug("SCSSCacher::process cached file for app '$app' and file '$fileNameCSS' is now available after $retrys. Moving on...", ['app' => 'scss_cacher']);
171
174
return$this->injectCssVariablesIfAny();
172
175
}
173
-
$this->logger->debug('SCSSCacher: scss cache file locked for '.$lockKey, ['app' => 'core']);
174
176
sleep(1);
175
177
$retry++;
176
178
}
177
-
$this->logger->debug('SCSSCacher: Giving up scss caching for '.$lockKey, ['app' => 'core']);
179
+
$this->logger->debug('SCSSCacher::process Giving up scss caching for ' . $lockKey, ['app' => 'scss_cacher']);
178
180
returnfalse;
179
181
}
180
182
183
+
$this->logger->debug('SCSSCacher::process Lock acquired for ' . $lockKey, ['app' => 'scss_cacher']);
0 commit comments