Page MenuHomePhabricator

ResourceLoader caching old gadget dependencies (dependency does not exist)
Closed, DuplicatePublic

Description

I removed a gadget dependency on MediaWiki.org.

It was depending on jquery.mwExtension, which no longer exists.

40 minutes later, ResourceLoader still doesn't recognize that the dependency has been removed, so there are "Unknown dependency" errors.

This is shown in https://www.mediawiki.org/w/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector , even if I empty cache and hard reload that page directly.

For posterity, current content of that URL is P5917.

Event Timeline

Yes. Known issue. I reopened T157210 when I saw this too. Unfortunately, it was closed again, the reason being "caching".

Krinkle subscribed.

@Mattflaschen-WMF ResourceLoader has no caching for dependencies or module registrations. The HTTP cache for the given url expires every 5 minutes, the response itself is freshly build each time. This is most likely a problem with the Gadget extensions' caching of the result for the custom parser for the MediaWiki:Gadgets-definition page.