cancel
Showing results for 
Search instead for 
Did you mean: 

Document Preview Caching

chicks
Champ in-the-making
Champ in-the-making
How does one turn off caching of the preview, without slowing down normal web viewing?

Preview a document.  Edit the document, check it back in.  Preview it again.  You'll see the un-edited document in the preview, not good.

Is there a way to tell the Flash viewer to NOT cache the documents?  I've tried setting its allowed storage to zero, but it does no good.
1 REPLY 1

lysenko
Champ in-the-making
Champ in-the-making
Try to add this code to file C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository\upload\upload.post.js at line 240:

// remove preview
var thumbnails = updateNode.getThumbnails();
  
if (thumbnails.length > 0) {
for (i = 0; i < thumbnails.length; i++) {
  thumbnails[i].remove();
}
The idea is to clean preview cache objects just after upload new file version.

Here - http://blog.samarko.ru/2011/05/alfresco-share-preview-cache.html - I describe the process (in Russian).