##// END OF EJS Templates
caches: use individual namespaces per user to prevent beaker caching problems....
caches: use individual namespaces per user to prevent beaker caching problems. - especially for mysql in case large number of data in caches there could be critical errors storing cache, and thus preventing users from authentication. This is caused by the fact that we used single namespace for ALL users. It means it grew as number of users grew reaching mysql single column limit. This changes the behaviour and now we use namespace per-user it means that each user-id will have it's own cache namespace fragmenting maximum column data to a single user cache. Which we should never reach.

File last commit:

r2081:63c02c14 default
r2572:5b07455a default
Show More
repo_edit_maintenance.mako
66 lines | 1.8 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / repos / repo_edit_maintenance.mako
repositories: enabled support for maintenance commands....
r1555 <div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Maintenance')}</h3>
</div>
<div class="panel-body">
api: added maintenance command into API.
r1742 % if c.executable_tasks:
<h4>${_('Perform maintenance tasks for this repo')}</h4>
<span>${_('Following tasks will be performed')}:</span>
<ol>
% for task in c.executable_tasks:
<li>${task}</li>
% endfor
</ol>
repositories: enabled support for maintenance commands....
r1555 <p>
api: added maintenance command into API.
r1742 ${_('Maintenance can be automated by such api call. Can be called periodically in crontab etc.')}
<br/>
<code>
apps: removed deprecated usage of c.repo_info
r2081 ${h.api_call_example(method='maintenance', args={"repoid": c.rhodecode_db_repo.repo_name})}
api: added maintenance command into API.
r1742 </code>
repositories: enabled support for maintenance commands....
r1555 </p>
api: added maintenance command into API.
r1742 % else:
<h4>${_('No maintenance tasks for this repo available')}</h4>
% endif
repositories: enabled support for maintenance commands....
r1555 <div id="results" style="display:none; padding: 10px 0px;"></div>
% if c.executable_tasks:
<div class="form">
<div class="fields">
<button class="btn btn-small btn-primary" onclick="executeTask();return false">
${_('Run Maintenance')}
</button>
</div>
</div>
% endif
</div>
</div>
<script>
executeTask = function() {
var btn = $(this);
$('#results').show();
$('#results').html('<h4>${_('Performing Maintenance')}...</h4>');
btn.attr('disabled', 'disabled');
btn.addClass('disabled');
apps: removed deprecated usage of c.repo_info
r2081 var url = "${h.route_path('edit_repo_maintenance_execute', repo_name=c.rhodecode_db_repo.repo_name)}";
repositories: enabled support for maintenance commands....
r1555 var success = function (data) {
var displayHtml = $('<pre></pre>');
$(displayHtml).append(data);
$('#results').html(displayHtml);
btn.removeAttr('disabled');
btn.removeClass('disabled');
};
ajaxGET(url, success, null);
}
</script>