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

CommentFileSizeAuthor
#2 2782585.2.patch509 bytesalexpott

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Needs review
StatusFileSize
new509 bytes
nickdickinsonwilde’s picture

Status: Needs review » Fixed

Tests 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.

  • NickWilde committed 9cf15ac on 8.x-2.x authored by alexpott
    Issue #2782585 by alexpott: External CSS causing issues for \Drupal\...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.