Document Cache Size Mayan EDMS 3.4.9 [SOLVED]

Questions, comments, discussions. Over time certain topics might be moved to their own category.
Post Reply
Obelix1981
Posts: 4
Joined: Tue Dec 31, 2019 6:10 am

Document Cache Size Mayan EDMS 3.4.9 [SOLVED]

Post by Obelix1981 »

Hello everybody.

I am not sure if I am doing something wrong or if it is actually a bug.

I would like to change the document cache from standard 500 MB to 2 GB. However, that doesn't seem to work as it should.

First I tried on the user interface "System" -> "Setup" -> "Documents" to change the value "DOCUMENTS_CACHE_MAXIMUM_SIZE" to 2147483648 (byte). I then get a "server error, there's been an unexpected error."

After restarting EDMS, the value is back to 524288000 (byte).

Then I tried to enter the value in config.yml. After restarting EDMS, the value is also displayed in "DOCUMENTS_CACHE_MAXIMUM_SIZE", but when I call "Tools" -> "File cache", the standard 500.0 MB is still displayed there.

I'm using direct installation on Ubuntu Server 20.04.

I hope I was able to explain my request in a comprehensible manner.

What am I doing wrong?
User avatar
franco
Developer
Developer
Posts: 29
Joined: Sun Apr 05, 2020 2:30 am

Re: Document Cache Size Mayan EDMS 3.4.9

Post by franco »

Hi,

Thanks for the report. You process is correct and the expected behavior would be to update the cache size.

The 500MB limit was removed in version 3.4 (https://gitlab.com/mayan-edms/mayan-edm ... e66e83faac) by switching the cache size field to use a BigIntegerField (https://docs.djangoproject.com/en/2.2/r ... tegerField) which supports up to 9223372036854775807 bytes per cache.

We will investigate to see the cause of the issue you are experiencing.

Thank you.
User avatar
franco
Developer
Developer
Posts: 29
Joined: Sun Apr 05, 2020 2:30 am

Re: Document Cache Size Mayan EDMS 3.4.9

Post by franco »

Ticket 838 (https://gitlab.com/mayan-edms/mayan-edms/-/issues/838) is now tracking this issue.
User avatar
franco
Developer
Developer
Posts: 29
Joined: Sun Apr 05, 2020 2:30 am

Re: Document Cache Size Mayan EDMS 3.4.9

Post by franco »

I submitted and fix and it was just approved (https://gitlab.com/mayan-edms/mayan-edm ... 0ee2496f16).
This fix will be available in a few days as version 3.4.10.

Thank for the report!
Obelix1981
Posts: 4
Joined: Tue Dec 31, 2019 6:10 am

Re: Document Cache Size Mayan EDMS 3.4.9

Post by Obelix1981 »

Hi Franco,

thanks.

I upgrade to the new Version 3.4.10 and now is funcionally perfect.

thank you very much.
Post Reply