Skip to content

Commit

Permalink
Update LSCacheForm.php
Browse files Browse the repository at this point in the history
  • Loading branch information
WuhuaChen committed Nov 10, 2023
1 parent 999c957 commit 31bb99c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Form/LSCacheForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {

$form['clear_cache'] = [
'#type' => 'details',
'#title' => t('LSCache of this site!'),
'#title' => t('LSCache of this site'),
'#open' => TRUE,
];

Expand All @@ -66,7 +66,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {

$form['cache_settings'] = [
'#type' => 'details',
'#title' => t('LSCache Settings!'),
'#title' => t('LSCache Settings'),
'#open' => TRUE,
];

Expand All @@ -77,7 +77,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#title' => $this->t('Cache Status'),
'#options' => $options,
'#default_value' => $config->get('lite_speed_cache.cache_status'),
'#description' => $this->t('Disable or enable LiteSpeed Cache!'),
'#description' => $this->t('Disable or enable LiteSpeed Cache.'),
);

// max_age field.
Expand All @@ -95,12 +95,12 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#title' => $this->t('Debug'),
'#options' => $options,
'#default_value' => $config->get('lite_speed_cache.debug'),
'#description' => $this->t('Weather or not to log debug headers in Log files of web server!'),
'#description' => $this->t('Weather or not to log debug headers in Log files of web server.'),
);

$form['cache_login'] = [
'#type' => 'details',
'#title' => t('Private Cache for Logged In Users!'),
'#title' => t('Private Cache for Logged In Users'),
'#open' => TRUE,
];

Expand All @@ -111,7 +111,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#title' => $this->t('Private Cache Status'),
'#options' => $options,
'#default_value' => $config->get('lite_speed_cache.private_cache_status'),
'#description' => $this->t('Disable or enable LiteSpeed Private Cache!'),
'#description' => $this->t('Disable or enable LiteSpeed Private Cache.'),
);

$form['cache_login']['private_max_age'] = array(
Expand All @@ -125,7 +125,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#type' => 'textarea',
'#title' => $this->t('ESI Blocks Setting'),
'#default_value' => $config->get('lite_speed_cache.esi_blocks'),
'#description' => $this->t('ESI Block IDs in Page HTML Source. One block setting per line'),
'#description' => $this->t('ESI Block IDs in Page HTML Source. One block setting per line.'),
'#rows' => 4,
);

Expand Down

0 comments on commit 31bb99c

Please sign in to comment.