Show More
@@ -69,6 +69,10 b' def should_load_all():' | |||
|
69 | 69 | Returns if all application components should be loaded. In some cases it's |
|
70 | 70 | desired to skip apps loading for faster shell script execution |
|
71 | 71 | """ |
|
72 | ssh_cmd = os.environ.get('RC_CMD_SSH_WRAPPER') | |
|
73 | if ssh_cmd: | |
|
74 | return False | |
|
75 | ||
|
72 | 76 | return True |
|
73 | 77 | |
|
74 | 78 | |
@@ -256,9 +260,10 b' def includeme(config):' | |||
|
256 | 260 | config.include('rhodecode.apps._base.navigation') |
|
257 | 261 | config.include('rhodecode.apps._base.subscribers') |
|
258 | 262 | config.include('rhodecode.tweens') |
|
263 | config.include('rhodecode.authentication') | |
|
259 | 264 | |
|
265 | if load_all: | |
|
260 | 266 | config.include('rhodecode.integrations') |
|
261 | config.include('rhodecode.authentication') | |
|
262 | 267 | |
|
263 | 268 | if load_all: |
|
264 | 269 | from rhodecode.authentication import discover_legacy_plugins |
@@ -275,9 +280,8 b' def includeme(config):' | |||
|
275 | 280 | discover_legacy_plugins(config) |
|
276 | 281 | |
|
277 | 282 | # apps |
|
283 | if load_all: | |
|
278 | 284 | config.include('rhodecode.apps._base') |
|
279 | ||
|
280 | if load_all: | |
|
281 | 285 | config.include('rhodecode.apps.ops') |
|
282 | 286 | config.include('rhodecode.apps.admin') |
|
283 | 287 | config.include('rhodecode.apps.channelstream') |
@@ -303,6 +307,7 b' def includeme(config):' | |||
|
303 | 307 | settings['default_locale_name'] = settings.get('lang', 'en') |
|
304 | 308 | |
|
305 | 309 | # Add subscribers. |
|
310 | if load_all: | |
|
306 | 311 | config.add_subscriber(inject_app_settings, |
|
307 | 312 | pyramid.events.ApplicationCreated) |
|
308 | 313 | config.add_subscriber(scan_repositories_if_enabled, |
@@ -18,6 +18,7 b'' | |||
|
18 | 18 | # RhodeCode Enterprise Edition, including its added features, Support services, |
|
19 | 19 | # and proprietary license terms, please see https://rhodecode.com/licenses/ |
|
20 | 20 | |
|
21 | import os | |
|
21 | 22 | import atexit |
|
22 | 23 | import logging |
|
23 | 24 | |
@@ -28,6 +29,10 b' cache_keys_by_pid = []' | |||
|
28 | 29 | |
|
29 | 30 | @atexit.register |
|
30 | 31 | def free_cache_keys(): |
|
32 | ssh_cmd = os.environ.get('RC_CMD_SSH_WRAPPER') | |
|
33 | if ssh_cmd: | |
|
34 | return | |
|
35 | ||
|
31 | 36 | from rhodecode.model.db import Session, CacheKey |
|
32 | 37 | log.info('Clearing %s cache keys', len(cache_keys_by_pid)) |
|
33 | 38 |
General Comments 0
You need to be logged in to leave comments.
Login now