Skip to content

Commit fa02daf

Browse files
committed
Improves grammar
1 parent da013aa commit fa02daf

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

queueit.admin.inc

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function queueit_settings_form($form, &$form_state) {
1313

1414
/* Main configuration */
1515
$form['config'] = [
16-
'#title' => 'Queue-it Configuration',
16+
'#title' => 'Queue-it configuration',
1717
'#type' => 'fieldset',
1818
];
1919
// Implementation type.
@@ -22,7 +22,7 @@ function queueit_settings_form($form, &$form_state) {
2222
// * Code - Specify the configuration in code without using the Trigger/Action paradigm.
2323
$form['config']['queueit_mode'] = [
2424
'#type' => 'radios',
25-
'#title' => t('Queue-it mode.'),
25+
'#title' => t('Queue-it mode'),
2626
'#options' => [
2727
'integration' => 'Integration config',
2828
'js' => 'JavaScript',
@@ -40,7 +40,7 @@ function queueit_settings_form($form, &$form_state) {
4040
/* Integration mode */
4141
$form['integration_config'] = [
4242
'#title' => t('Integration settings'),
43-
'#description' => t('Integration configuration uses integration config which is hosted on Queue-it configuration store. The configuration consist information necessary for page protection such as Triggers and Actions and which queues to use.'),
43+
'#description' => t("Settings related to <i>Integration config</i> mode as defined in Queue-it configuration store and controlled via the Queue-it Go platform. The configuration file consists of Triggers and Actions to determine which pages to protect and which queues to use."),
4444
'#type' => 'fieldset',
4545
'#collapsible' => TRUE,
4646
'#collapsed' => variable_get('queueit_mode', 'integration') <> 'integration',
@@ -61,7 +61,7 @@ function queueit_settings_form($form, &$form_state) {
6161
'#executes_submit_callback' => FALSE,
6262
'#suffix' => sprintf(t('Last update: %s<br>'), strftime("%c", $known_user->getIntegrationConfigTimestamp()))
6363
. sprintf(t('Endpoint: <a href="%s">%s</a><br>'), $known_user->getIntegrationConfigUrl(), $known_user->getIntegrationConfigUrl())
64-
. t("<br>Use <i>Refresh</i> button to re-pull the integration config from Queue-it (it refreshes the cached version). Note: it won't work if used more often than 5 seconds to avoid IP ban."),
64+
. t("<br>Use <i>Refresh</i> button to fetch the latest integration config from Queue-it Go platform. The config is cached with a TTL of 5 mins, after which the new config is loaded on any page load. Clicking the <i>Refresh</i> button more than once every 5 seconds will not trigger another fetch."),
6565
];
6666
/* Configuration using code */
6767
$form['event_config'] = [

src/classes/QueueitKnownUser.php

-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ public function getIntegrationConfig($ttl = 300, $json = TRUE) {
212212
if (REQUEST_TIME - $last_pull > $ttl) {
213213
// Get the auto-generated config file published on Queue-it Go platform.
214214
// URL: https://[your-customer-id].queue-it.net/status/integrationconfig/[your-customer-id]
215-
// @todo: Consider caching the config to minimalize external requests.
216215
$config_json = file_get_contents($this->getIntegrationConfigUrl());
217216
// Convert plain JSON to array.
218217
$config_arr = json_decode($config_json, TRUE);

0 commit comments

Comments
 (0)