image caching possible issue - serial join to dynamic path

115 views
Skip to first unread message

Tulio

unread,
Jan 18, 2014, 10:19:25 PM1/18/14
to comman...@googlegroups.com
When I set an image to be dynamic and do not set the option "allow caching", the image is loaded only by server, even if the image is on cache of iViewer. 
If I set the option allow cache, the image is loaded from iPad.

Is this behaviour an issue?

How to test:
load example project from guiDesigner
maintain upload service running
touch the button and you'll see the image changing
stop upload service
terminate iViewer and reopen it
touch the button and you'll see nothing

Enviroment:

guiDesigner: 2.7.0.713
iViewer 4.0.288 - iPad mini
iViewer Next 4.0.292 - iPad mini
droidViewer  4.0.183 - bluestacks
bug_image_cache.gui.zip

Jarrod Bell

unread,
Jan 18, 2014, 11:02:36 PM1/18/14
to comman...@googlegroups.com
What is the image URL you are using?

The options sound like they are working as intended anyway - allow caching means it will get the image, then store it in cache and all requests for that same image URL will load from cache until the GUI is reloaded.

If you do not tick "allow caching" then iViewer will always first try to get a new copy of the image from the URL you specify.

Regards,

Jarrod Bell
CommandFusion
www.commandfusion.com


--
You received this message because you are subscribed to the Google Groups "CommandFusion Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandfusio...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Tulio

unread,
Jan 19, 2014, 8:15:47 AM1/19/14
to comman...@googlegroups.com, jar...@commandfusion.com
I am using internal images, cached when I uploaded the project via upload service. 

You can see more details in the short example in my last post. 

The images are always in project, but without allow caching, iVIewer seems to try only in server, never locally. (PS.I don't use asset folder, all images are in same folder of .gui)

Tulio

unread,
Feb 23, 2014, 3:03:10 PM2/23/14
to comman...@googlegroups.com, jar...@commandfusion.com
still same behavior in iViewer 4.0.296

Florent Pillet

unread,
Feb 23, 2014, 3:13:24 PM2/23/14
to comman...@googlegroups.com
Thanks for the reminder, we'll fix this one in the next round of fixes!

Florent

On 23 Feb 2014, at 21:03, Tulio <tulio....@gmail.com> wrote:

still same behavior in iViewer 4.0.296



--
Florent Pillet - Software Engineering Lead



Fabio Bortolin

unread,
Feb 28, 2014, 1:34:35 PM2/28/14
to comman...@googlegroups.com
I have the same inssue,
What I'm doing know is when I upload the project, I manually force my images to be changed with the GUIDesigner server started, (TOUCH MY ANIMATION'S BUTTONS) after this I can Stop the server and the images will be loaded! 

Florent Pillet

unread,
Mar 3, 2014, 5:52:48 AM3/3/14
to comman...@googlegroups.com
The image actually behaves as intended.

The "Allow Caching" flag was made specifically for images that need to be reloaded from server every time you set a new URL (whether it has been previously downloaded or not), so that the image always loads a fresh copy. If you set the Allow Caching flag, it will behave as intended -- try to load from cache first, then load from server and cache the downloaded copy for later reuse.

What is the exact use case where you do NOT want to set the Allow Caching flag, but still need to load from cache?

Florent

Tulio

unread,
Mar 3, 2014, 8:44:00 AM3/3/14
to comman...@googlegroups.com
Hi Florent, thanks for the answer. I can use this feature as it is right now. I usually use a cache page to load all images I need and then call a specific one via serial join. In this case I should never forget to check the "allow cache" option.

My intent was alert you a possible issue. If it is not an issue, that's OK. 
Reply all
Reply to author
Forward
0 new messages