Bug 43593 - Ошибка при очистке кэша
Summary: Ошибка при очистке кэша
Status: CLOSED WORKSFORME
Alias: None
Product: Sisyphus
Classification: Development
Component: openuds-server (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-23 14:13 MSK by Elena Mishina
Modified: 2023-01-16 15:58 MSK (History)
2 users (show)

See Also:


Attachments
Ошибка при очистке кэша (45.72 KB, image/png)
2022-08-23 14:13 MSK, Elena Mishina
no flags Details
без ошибки (14.39 KB, image/png)
2023-01-16 15:58 MSK, Alexander Makeenkov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elena Mishina 2022-08-23 14:13:56 MSK
Created attachment 11374 [details]
Ошибка при очистке кэша

При попытке очистки кэша («Инструменты»→«Очистить кэш») ошибка:

Error 500: (1146, "Table 'dbuds.uds_response_cache' doesn't exist").

В БД таблица называется uds_utility_cache.

(-bash-4.4$ python3 manage.py createcachetable
Cache table 'uds_utility_cache' already exists.)

Если в файле /etc/openuds/settings.py изменить зн-е 'LOCATION' с 'uds_response_cache' на 'uds_utility_cache', то кэш можно очистить:

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
        'LOCATION': 'uds_utility_cache',
        'OPTIONS': {
            'MAX_ENTRIES': 5000,
            'CULL_FREQUENCY': 3,  
        }
    },
Comment 1 Alexander Makeenkov 2023-01-16 15:58:08 MSK
Created attachment 12302 [details]
без ошибки

openuds-server-3.5.0-alt3 - ошибка не воспроизводится.