Skip to content
Snippets Groups Projects
Commit 2fad1b5a authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

Issue #3342516: Purge packages.json when changed

parent 616cce6d
No related branches found
No related tags found
No related merge requests found
......@@ -265,8 +265,10 @@ function _project_composer_get_release_nids($project_nid, $release_category) {
*/
function project_composer_manage_provider_includes($includes) {
$project_composer_include_info = [];
$release_categories = [];
foreach ($includes as $include_group) {
list($year, $month, $release_category) = explode('-', $include_group);
$release_categories[$release_category] = TRUE;
$include_group = $year . '-' . $month;
$json = project_composer_get_provider_include_json($release_category, $include_group);
......@@ -304,6 +306,10 @@ function project_composer_manage_provider_includes($includes) {
drupal_write_record('project_composer_provider_includes', $provider_include);
}
}
foreach (array_keys($release_categories) as $release_category) {
project_composer_purge_packages_url(project_composer_core_version_string_from_release_category($release_category) . '/packages.json');
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment