Hi Stephen,

No worries :)  Every report and message is welcomed.

I've seen what you mentioned a few times, with Google Chrome specifically. 
 Its default cache settings might be more aggressiveness than 
other browser's or have some issue with the asynchronous way and library 
used to display the images (https://github.com/sebarmeli/JAIL).

The document's cached image is not deleted because there is no way to know 
which cached image belongs to which document.  The cached image filename is 
a hash composed from the document UUID and from the string representation 
of the transformation being applied (zoom, rotation, crop) to be able to 
quickly recall that same cached image if the users once again requests the 
document with the same transformations.  Since it is a hash there is no way 
to reverse it to obtain the document's id or UUID.  It is however something 
to think about, perhaps keeping a linked list of a document's cached images 
for this purpose.  Will devote some time to figure something out, thanks 
for pointing it out.  As for the browser cache issue I saw the the JAIL 
library has release two bug fix versions I'm going to check it out to see 
if there is something in the changelog regarding browser caching.

Feel free to post your code for bulk tagging, I would like to see it.  Or 
send a pull request if you manage to combine it into the existing 
bulk_upload command.

Thanks,

--Roberto


On Thursday, September 13, 2012 5:46:41 AM UTC-4, Stephen Knox wrote:
>
> Silly me, 
>
> I think it was a problem with my browser cache. I just deleted that and it 
> was fine...
>
> Sorry
>
> On Thursday, September 13, 2012 10:27:42 AM UTC+1, Stephen Knox wrote:
>>
>> Hi again,
>>
>> I've run into an issue with the image cache, it seemed to start after I 
>> uploaded a password-protected PDF. I deleted that, removed the security and 
>> re-uploaded, but there still appear to be issues. 
>>
>> I can see some of the previews but not all:
>>
>>
>> <https://lh6.googleusercontent.com/-itSKzVv9Ouc/UFGmAAWUc1I/AAAAAAAABKM/WPcRpqLqTNU/s1600/psthumbnail.png>
>>
>>
>>
>>
>>
>>
>> (It's not a PS file, although there was one at some point..., 
>> subsequently deleted)
>>
>>
>> <https://lh6.googleusercontent.com/-c--o2pHsatE/UFGmG4JN_nI/AAAAAAAABKU/KKAutylUkyY/s1600/largerthumb.png>The
>>  
>> correct file in the image_cache is definitely there, so is this a 
>> javascript issue?
>>
>> <https://lh6.googleusercontent.com/-c--o2pHsatE/UFGmG4JN_nI/AAAAAAAABKU/KKAutylUkyY/s1600/largerthumb.png>
>>
>> I also noticed there were more files in the image_cache directory than 
>> there were pages. Does the image_cache get deleted when a document is 
>> deleted?
>>
>> On an unrelated note I have written a python script that combined with a 
>> bash script gets into the Mayan environment and bulk adds a specific tag to 
>> the documents specified in the range. Can share if anyone is interested.
>>
>> Stephen
>>
>

-- 



Reply via email to