Skip to content

Commit

Permalink
Update hook number, match config with yml, and tweak descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kepol committed Jul 27, 2023
1 parent 3b8aec0 commit 566a79b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions modules/quant_purger/quant_purger.install
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,23 @@ function quant_purger_schema() {
/**
* Update configuration for module settings.
*/
function quant_purger_update_0001(&$sandbox) {
function quant_purger_update_9101(&$sandbox) {
$config = \Drupal::configFactory()->getEditable('quant_purger.settings');
$config->set('tag_blocklist', [
'rendered',
'http_response',
'4xx-response',
'block_view',
'block_view_content',
'config:*',
'node_view',
'node_list',
'media_view',
'block_content_view',
'marketo_form_view',
'paragraph_view',
'config:*',
'user:*',
'local_task',
]);
$config->set('path_blocklist', ['/admin/*']);
$config->save();
Expand Down
4 changes: 2 additions & 2 deletions modules/quant_purger/src/Form/ConfigurationForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ public function buildForm(array $form, FormStateInterface $form_state) {
];
}

$form['path_blocklist_fieldset']['#description'] = $this->t('The Quant purge querer collects HTTP requests that the Quant module makes to generate static representations of content. It requires that the request has a valid token to limit the performance impact of gathering traffic information in such a manner. This is a user managed list of paths and query strings that will be excluded from traffic gathering.');
$form['path_blocklist_fieldset']['#description'] = $this->t('The Quant purge queuer collects HTTP requests that the Quant module makes to generate static representations of content. It requires that the request has a valid token to limit the performance impact of gathering traffic information in such a manner. This is a user managed list of paths and query strings that will be excluded from traffic gathering.');

$form['tag_blocklist_fieldset']['#description'] = $this->t('By default all cache tag invalidations will trigger a queue entry. Some of these invalidations can have widespread effects on the site and require a full content seed. This allows you to exclude certain tags from triggering a content re-index.');
$form['tag_blocklist_fieldset']['#description'] = $this->t('By default all cache tag invalidations will trigger a queue entry. Some of these invalidations can have widespread effects on the site and require a full content seed. This allows you to exclude certain tags from triggering a content re-seed.');

$form['actions']['clear'] = [
'#type' => 'submit',
Expand Down

0 comments on commit 566a79b

Please sign in to comment.