Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
radioactivity-3340019
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
radioactivity-3340019
Commits
f3cfbae0
Commit
f3cfbae0
authored
15 years ago
by
Sami Kiminki
Browse files
Options
Downloads
Patches
Plain Diff
Fix for
#552036
parent
9f98ec73
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
radioactivity-admin-ui.inc
+18
-17
18 additions, 17 deletions
radioactivity-admin-ui.inc
with
18 additions
and
17 deletions
radioactivity-admin-ui.inc
+
18
−
17
View file @
f3cfbae0
...
...
@@ -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
,
'#d
isabled'
=>
!
$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
,
'#d
efault_value'
=>
radioactivity_get_memcached_expiration
());
}
return
system_settings_form
(
$form
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment