Problem/Motivation
\Drupal\advagg\State\Files::getMultiple() gets called for external CSS files with a key like '//example.com/something.css'..
The first time \Drupal\advagg\State\Files::getMultiple() is called it will then call $this->scanFile($key); which will create a cache entry...
The next time \Drupal\advagg\State\Files::getMultiple() is called it will find the cache entry and because the file does not exist it will delete the cache entry...
The next time is does what it did the first time... and so on and so on...
Proposed resolution
Don't create entries where file_exists() returns FALSE.
Remaining tasks
Tests?
User interface changes
None
API changes
None
Data model changes
None
Comments
Comment #2
alexpottComment #3
nickdickinsonwildeTests would be good... I'll be getting to solid tests soon but as there isn't anything more than stub tests yet I'm committing the bug fix now and (hopefully) include a test for that we I get to the test writing.