Quantcast

[Mayan EDMS: 1543] Upgrade to 2.2b2 and thumbnails

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mayan EDMS: 1543] Upgrade to 2.2b2 and thumbnails

Sebastian Tänzer
I managed to perform an upgrade to 2.2b2. 

Is there anything I have to do to use the new thumbnail caching or isn't that implemented yet?
Thumbnails are still generated with every page call.

Best
Sebastian

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mayan EDMS: 1551] Re: Upgrade to 2.2b2 and thumbnails

rosarior
Administrator
Nothing is needed to use the new thumbnail caching. Enable the DEBUG mode by adding this to you settings/local.py file

DEBUG=True

Go to a view that shows document images and take a look at the debug messages in the console. You should entries like this:

documents.models <8408> [DEBUG] "generate_image() transformations cache file "page-cache-bea37f94-57c4-4789-a5b3-f501dc678fcd-24-55-118690ab21ab21be" found"

The long filename is the page UUID followed by the transformations if serialized format (zoom, resize, rotation). This means that the page images are being cached in their
final resized dimensions. The system still uses a background process to check is a document thumbnail is already available and this causes a slight overhead (not realtime).
If runing using the `runserver` command the task broker is disabled and all background tasks run in the same process as the UI, this will cause the appearance that the
thumbnails are being generated from scratch. A screen refresh should show that they are not being regenerated and will display faster than the first time they displayed,
this should indicate that they are being cached. With this in mind give it another try to see a difference. You can also delete all cached images using the "Clear document image cache"
button in the Tools menu or by manually deleting all file in the mayan/media/document_cache folder and doing a view refresh. The time to display the thumbnails should be very 
different in the first and subsequent refreshes.




On Friday, March 17, 2017 at 8:59:04 AM UTC-4, Sebastian Tänzer wrote:
I managed to perform an upgrade to 2.2b2. 

Is there anything I have to do to use the new thumbnail caching or isn't that implemented yet?
Thumbnails are still generated with every page call.

Best
Sebastian

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...