Linux基础
1 前言
一个问题,一篇文章,一出故事。
笔记的生产环境的onlyoffice需要修改onlyoffice的缓存,于是整理此文。
另外,关于onlyoffice环境,请参阅如下章节,
2 最佳实践
2.1 准备PrivacyIDEA环境
2.1.1 缓存的目录
ls /var/lib/onlyoffice/documentserver/App_Data/cache/files/
可见如下缓存文件,
1018464727 1426612122 1871250921 212778320 2320034293 2740288005_2231 2878603837 3188917438 3673990177 4126249940 597361628 1066190458 1588925247 1927912532 2143222865 2563439361 2740288005_363 2883336015 3230042920 3692937694 4172481237 701239652 114022687 1593478722 1990351849 2181963409 2693206279 2740288005_4667 297093443 3345678680 369846857 4192821066 718786935 1164607220 1615415313 2000720069 2214137423 2740288005 2740288005_5480 3064850005 3358383504 3858765285 4258470344 744226933 1316711957 1697063115 2026353895 2223815410 2740288005_1274 2740288005_8200 3147405558 3431738946 3981237270 439208352 761750716 1344145705 1739654539 2096347793 2282357159 2740288005_208 2841642007 316201322 355545299 4098961506 469094698 forgotten
2.1.2 修改缓存时间
vim /etc/onlyoffice/documentserver/local.json
修改如下参数,
{ "services": { "CoAuthoring": { #.. "expire": { #... "files": 300, "filesCron": "*/3 * * * * *", #... }, } } }
然后,你需要通过如下命令重启使配置生效,
systemctl restart supervisord.service systemctl status supervisord.service
=================================
缓存修改的配置
—————–
https://github.com/ONLYOFFICE/DocumentServer/issues/449
https://github.com/ONLYOFFICE/server/blob/bc6ea0318908373b750c4e7a328ebd41f92c5446/Common/config/default.json#L113
强制保存
——————
https://api.onlyoffice.com/editors/save
没有评论