Show More
@@ -336,11 +336,7 b' celery.always.eager = false' | |||
|
336 | 336 | beaker.cache.data_dir = %(here)s/data/cache/data |
|
337 | 337 | beaker.cache.lock_dir = %(here)s/data/cache/lock |
|
338 | 338 | |
|
339 |
beaker.cache.regions = |
|
|
340 | ||
|
341 | beaker.cache.super_short_term.type = memory | |
|
342 | beaker.cache.super_short_term.expire = 10 | |
|
343 | beaker.cache.super_short_term.key_length = 256 | |
|
339 | beaker.cache.regions = short_term,long_term,sql_cache_short | |
|
344 | 340 | |
|
345 | 341 | beaker.cache.short_term.type = memory |
|
346 | 342 | beaker.cache.short_term.expire = 60 |
@@ -354,14 +350,6 b' beaker.cache.sql_cache_short.type = memo' | |||
|
354 | 350 | beaker.cache.sql_cache_short.expire = 10 |
|
355 | 351 | beaker.cache.sql_cache_short.key_length = 256 |
|
356 | 352 | |
|
357 | beaker.cache.sql_cache_med.type = memory | |
|
358 | beaker.cache.sql_cache_med.expire = 360 | |
|
359 | beaker.cache.sql_cache_med.key_length = 256 | |
|
360 | ||
|
361 | beaker.cache.sql_cache_long.type = file | |
|
362 | beaker.cache.sql_cache_long.expire = 3600 | |
|
363 | beaker.cache.sql_cache_long.key_length = 256 | |
|
364 | ||
|
365 | 353 | #################################### |
|
366 | 354 | ### BEAKER SESSION #### |
|
367 | 355 | #################################### |
@@ -22,17 +22,8 b' Follow these few steps to improve perfor' | |||
|
22 | 22 | |
|
23 | 23 | 1. Increase cache |
|
24 | 24 | |
|
25 | In the .ini file:: | |
|
26 | ||
|
27 | beaker.cache.sql_cache_long.expire=3600 <-- set this to higher number | |
|
28 | ||
|
29 | This option affects the cache expiration time for the main | |
|
30 | page. Having several hundreds of repositories on main page can | |
|
31 | sometimes make the system behave slowly when the cache expires for | |
|
32 | all of them. Increasing the ``expire`` option to a day (86400) or a | |
|
33 | week (604800) will improve general response times for the main | |
|
34 | page. Kallithea has an intelligent cache expiration system and it | |
|
35 | will expire the cache for repositories that have been changed. | |
|
25 | Tweak beaker cache settings in the ini file. That actual effect of that | |
|
26 | is questionable. | |
|
36 | 27 | |
|
37 | 28 | 2. Switch from sqlite to postgres or mysql |
|
38 | 29 |
@@ -334,11 +334,7 b' celery.always.eager = false' | |||
|
334 | 334 | beaker.cache.data_dir = ${here}/data/cache/data |
|
335 | 335 | beaker.cache.lock_dir = ${here}/data/cache/lock |
|
336 | 336 | |
|
337 |
beaker.cache.regions = s |
|
|
338 | ||
|
339 | beaker.cache.super_short_term.type = memory | |
|
340 | beaker.cache.super_short_term.expire = 10 | |
|
341 | beaker.cache.super_short_term.key_length = 256 | |
|
337 | beaker.cache.regions = short_term,long_term,sql_cache_short | |
|
342 | 338 | |
|
343 | 339 | beaker.cache.short_term.type = memory |
|
344 | 340 | beaker.cache.short_term.expire = 60 |
@@ -352,14 +348,6 b' beaker.cache.sql_cache_short.type = memo' | |||
|
352 | 348 | beaker.cache.sql_cache_short.expire = 10 |
|
353 | 349 | beaker.cache.sql_cache_short.key_length = 256 |
|
354 | 350 | |
|
355 | beaker.cache.sql_cache_med.type = memory | |
|
356 | beaker.cache.sql_cache_med.expire = 360 | |
|
357 | beaker.cache.sql_cache_med.key_length = 256 | |
|
358 | ||
|
359 | beaker.cache.sql_cache_long.type = file | |
|
360 | beaker.cache.sql_cache_long.expire = 3600 | |
|
361 | beaker.cache.sql_cache_long.key_length = 256 | |
|
362 | ||
|
363 | 351 | <%text>####################################</%text> |
|
364 | 352 | <%text>### BEAKER SESSION ####</%text> |
|
365 | 353 | <%text>####################################</%text> |
@@ -330,11 +330,7 b' celery.always.eager = false' | |||
|
330 | 330 | beaker.cache.data_dir = %(here)s/data/cache/data |
|
331 | 331 | beaker.cache.lock_dir = %(here)s/data/cache/lock |
|
332 | 332 | |
|
333 |
beaker.cache.regions = s |
|
|
334 | ||
|
335 | beaker.cache.super_short_term.type = memory | |
|
336 | beaker.cache.super_short_term.expire = 10 | |
|
337 | beaker.cache.super_short_term.key_length = 256 | |
|
333 | beaker.cache.regions = short_term,long_term,sql_cache_short | |
|
338 | 334 | |
|
339 | 335 | beaker.cache.short_term.type = memory |
|
340 | 336 | beaker.cache.short_term.expire = 60 |
@@ -348,14 +344,6 b' beaker.cache.sql_cache_short.type = memo' | |||
|
348 | 344 | beaker.cache.sql_cache_short.expire = 10 |
|
349 | 345 | beaker.cache.sql_cache_short.key_length = 256 |
|
350 | 346 | |
|
351 | beaker.cache.sql_cache_med.type = memory | |
|
352 | beaker.cache.sql_cache_med.expire = 360 | |
|
353 | beaker.cache.sql_cache_med.key_length = 256 | |
|
354 | ||
|
355 | beaker.cache.sql_cache_long.type = file | |
|
356 | beaker.cache.sql_cache_long.expire = 3600 | |
|
357 | beaker.cache.sql_cache_long.key_length = 256 | |
|
358 | ||
|
359 | 347 | #################################### |
|
360 | 348 | ### BEAKER SESSION #### |
|
361 | 349 | #################################### |
@@ -336,11 +336,7 b' celery.always.eager = false' | |||
|
336 | 336 | beaker.cache.data_dir = %(here)s/data/cache/data |
|
337 | 337 | beaker.cache.lock_dir = %(here)s/data/cache/lock |
|
338 | 338 | |
|
339 |
beaker.cache.regions = |
|
|
340 | ||
|
341 | beaker.cache.super_short_term.type = memory | |
|
342 | beaker.cache.super_short_term.expire = 10 | |
|
343 | beaker.cache.super_short_term.key_length = 256 | |
|
339 | beaker.cache.regions = short_term,long_term,sql_cache_short | |
|
344 | 340 | |
|
345 | 341 | beaker.cache.short_term.type = memory |
|
346 | 342 | beaker.cache.short_term.expire = 60 |
@@ -354,14 +350,6 b' beaker.cache.sql_cache_short.type = memo' | |||
|
354 | 350 | beaker.cache.sql_cache_short.expire = 1 |
|
355 | 351 | beaker.cache.sql_cache_short.key_length = 256 |
|
356 | 352 | |
|
357 | beaker.cache.sql_cache_med.type = memory | |
|
358 | beaker.cache.sql_cache_med.expire = 360 | |
|
359 | beaker.cache.sql_cache_med.key_length = 256 | |
|
360 | ||
|
361 | beaker.cache.sql_cache_long.type = file | |
|
362 | beaker.cache.sql_cache_long.expire = 3600 | |
|
363 | beaker.cache.sql_cache_long.key_length = 256 | |
|
364 | ||
|
365 | 353 | #################################### |
|
366 | 354 | ### BEAKER SESSION #### |
|
367 | 355 | #################################### |
General Comments 0
You need to be logged in to leave comments.
Login now