Skip to content
Snippets Groups Projects
Commit f3cfbae0 authored by Sami Kiminki's avatar Sami Kiminki
Browse files

Fix for #552036

parent 9f98ec73
No related branches found
No related tags found
No related merge requests found
......@@ -28,27 +28,28 @@ function radioactivity_admin_general_form() {
$form['memcached']['availability']=
array('#type' => 'item',
'#title' => t('Memcached configuration status'),
'#title' => t('Memcached status'),
'#value' => $memcached_availability_text);
$form['memcached']['radioactivity_memcached_enable']=
array('#type' => 'checkbox',
'#title' => t('Memcached acceleration for node views'),
'#description' => t('If this option is enabled, node views do not update radioactivity energies directly. Instead, '.
'entry with minimal information is written to memcached. These entries are processed during cron runs.'),
'#default_value' => radioactivity_get_memcached_enable(),
'#disabled' => !$memcached_ok);
if ($memcached_ok) {
$form['memcached']['radioactivity_memcached_enable']=
array('#type' => 'checkbox',
'#title' => t('Memcached acceleration'),
'#description' => t('If this option is enabled, energy additions are deferred by saving an '.
'entry with minimal information to memcached bin <em>radioactivity</em>. '.
'These entries are batch processed in cron runs.'),
'#default_value' => radioactivity_get_memcached_enable());
$form['memcached']['radioactivity_memcached_expiration']=
array('#type' => 'textfield',
'#title' => t('Memcached entry expiration time (in seconds)'),
'#description' => t('Expiration time for memcached entries used by radioactivity. This should be at least twice as long as your maximum '.
'cron interval.'),
'#size' => 10,
'#required' => TRUE,
'#disabled' => !$memcached_ok,
'#default_value' => radioactivity_get_memcached_expiration());
$form['memcached']['radioactivity_memcached_expiration']=
array('#type' => 'textfield',
'#title' => t('Memcached entry expiration time (in seconds)'),
'#description' => t('Expiration time for memcached entries used by radioactivity. This should be at least twice as long as your maximum '.
'cron interval.'),
'#size' => 10,
'#required' => TRUE,
'#default_value' => radioactivity_get_memcached_expiration());
}
return system_settings_form($form);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment