function pwa_update_7204 in Progressive Web App 7.2
Initialize the new variable for assets configuration.
File
- ./
pwa.install, line 217
Code
function pwa_update_7204() {
variable_set('pwa_sw_asset_config', PWA_SW_ASSETS);
variable_del('pwa_sw_type_asset');
// Expose the complete regex.
$values = _pwa_config_value_split('pwa_sw_cache_exclude', PWA_SW_CACHE_EXCLUDE);
foreach ($values as &$value) {
$value = '^' . ($value[0] === '/' ? '' : '/') . $value;
}
variable_set('pwa_sw_cache_exclude', implode("\n", $values));
return 'Default cache configuration for assets installed.';
}