#1 2011-03-06 11:31:41

unclepetros
Member
Registered: 2010-04-11
Posts: 88

[Patch] Added UUID to cached images

Hello,
I've fixed the issue reported here:
http://forums.gcstar.org/viewtopic.php?id=1770

I've added an UUID string prefix to each cached image.

In attachment the patch.

To install it, you can follow my quick HowTo here, or wait until this patch will be added in svn repository.

Regards
UnclePetros

Last edited by unclepetros (2011-03-06 12:00:17)


Attachments:
Attachment Icon GCImageLists.pm.patch, Size: 2,271 bytes, Downloads: 456

Offline

 

#2 2011-03-06 12:02:17

unclepetros
Member
Registered: 2010-04-11
Posts: 88

Re: [Patch] Added UUID to cached images

I've done a small mistake in the fix.
In attachment the new updated patch.

Regards
UnclePetros

Last edited by unclepetros (2011-04-24 06:54:11)


Attachments:
Attachment Icon GCImageLists.pm.patch, Size: 2,420 bytes, Downloads: 489

Offline

 

#3 2011-06-01 10:53:42

Tian
Administrator
From: France
Registered: 2006-12-08
Posts: 1647
Website

Re: [Patch] Added UUID to cached images

Hello,

Thank you for this patch.

The problem is that the module doesn't seem to be available for Windows in ActiveState Perl. Wouldn't that be possible to do something similar, but without using such a module?

Offline

 

#4 2011-06-04 18:56:12

unclepetros
Member
Registered: 2010-04-11
Posts: 88

Re: [Patch] Added UUID to cached images

Hi Tian,
you are right;
I had forgotten to test it also under windows.

Anyway, Now I've figured out how to create unique cached image name, without using UUID.

I've used the id field, present in the collection files (.gcs), for each item.

Now cached images name has the following format:

[id].[title].cache.[size].overlay

I've tested the patch on many different collections, and it works fine.

In attachment the patch.

Let me know in case of problems.

NOTE: After installing the patch it is better to clean the cache before starting GCStar.
The first time, after installing the patch, GCStar will reconstruct images cache, so it may take a few time.

Regards
UnclePetros

Last edited by unclepetros (2011-06-04 18:58:33)


Attachments:
Attachment Icon GCImageLists.pm.patch, Size: 4,857 bytes, Downloads: 433

Offline

 



Should you have a problem using GCstar, you can open a bug report or request some support on GCstar forums.