mirror of
https://github.com/haiwen/seahub.git
synced 2025-04-28 03:10:45 +00:00
update onlyoffice log when no doc_key in cache
This commit is contained in:
parent
8f392f1cb3
commit
3df3400f8d
@ -73,8 +73,10 @@ def get_onlyoffice_dict(request, username, repo_id, file_path, file_id='',
|
||||
if not doc_key:
|
||||
doc_key = cache.get(cache_key)
|
||||
|
||||
# In theory, file is unlocked when editing finished.
|
||||
# This can happend if memcache is restarted or memcache is full and doc key is deleted.
|
||||
if not doc_key and if_locked_by_online_office(repo_id, file_path):
|
||||
logger.error('no doc_key in cache and locked by online office')
|
||||
logger.warning('no doc_key in cache and file({} in {}) is locked by online office'.format(file_path, repo_id))
|
||||
|
||||
if not doc_key:
|
||||
info_bytes = force_bytes(origin_repo_id + origin_file_path + file_id)
|
||||
|
Loading…
Reference in New Issue
Block a user