Disable Cache in Deluxe Image Gallery

Permalink Browser Info Environment
Hi, Jordan!

This is a minor issue, and I'm not really sure if it's something to do with DIG or C5 itself but I thought I'd start by ask you...

My analytics program (Piwik) shows that when a site visitor clicks on a thumbnail in DIG the full-size image is coming from the cache. Because of this, I can't see from the filename which image the visitor is viewing. Instead, I have to load the image using the link in Piwik to see what was viewed. Here's an example of what I mean:

Piwik shows this: https://www.crazychris.ca/files/cache/4a7e35d3b35ea7503cf5f79fe42619...

Actual full-size image in C5 is this: https://www.crazychris.ca/files/6713/5992/9501/bpsuperbowl9.jpg...

See the difference?

Is there a way to force DIG to not load images from the cache and, instead, load the actual full-size image? Btw, my cache settings in C5 are as follows:

Basic Cache: Off
Overrides Cache: Off
Full Page Caching: Off

Any help you can provide would be appreciated!

Thanks!

Regards,

Chris

Type: Discussion
Status: New
chrison999
View Replies:
jordanlev replied on at Permalink Reply
jordanlev
Hi Chris,
To avoid resizing images, simply leave the "large" image width and height settings blank (or 0) when adding/editing the block.

If this doesn't work for you, let me know and I'll see if there's another solution available.

-Jordan
chrison999 replied on at Permalink Reply
chrison999
Perfect! That appears to have fixed it... thanks!

One other little thing I did notice, though, as I was testing the fix... If the user clicks a thumbnail to bring up a full-size image and then uses the left and/or right arrows to scroll through other images, Piwik isn't capturing the other images that are being viewed. Is this the expected behavior for DIG?

Basically, what I'd like to do is track which images visitors are viewing as, over time, this will give me a very good idea of which products are popular and which aren't.

Thanks, again, for your help thus far, and for any further help you can provide.

Regards,

Chris
jordanlev replied on at Permalink Reply
jordanlev
Hi Chris,
Glad the cache issue has been fixed!
As for your follow-up question... I have never used Piwik so I don't know how it works. When a user clicks the left/right arrows in the fancybox, fancybox's javascript loads the next image via its URL. If Piwik is on the HTML page (via a javascript tag you've added to your page header or footer), then I could see how it wouldn't notice if fancybox's javascript code is loading a new image directly. A quick google for "piwik fancybox" led me to this StackOverflow answer, which might point you in the right direction:
http://stackoverflow.com/a/10587192/477513...

...but this is going to require some customization on your end... probably by editing the fancybox initialization code which is in /packages/deluxe_image_gallery/blocks/deluxe_image_gallery/view.php (which you will want to override by copying to /blocks/deluxe_image_gallery/view.php so that future upgrades to the DIG addon won't erase your customization).

Best of luck!

-Jordan
chrison999 replied on at Permalink Reply
chrison999
Hi, Jordan!

So, no "quick fix" for this one, eh? (SIGH!) (LOL!)

Yeah, I kinda thought maybe Piwik was missing the popped-up images because it's looking at the main page. Yes, Piwik works via a javascript tag in the header/footer, so what you said makes sense.

I took a look at that link you sent me. It seems that Piwik should be able to handle this but, at least on my system, it isn't working.

I'll go over to the Piwik forums and see if I can find an answer. I'd rather do that than start mucking with the fancybox code.

Thanks for your help! I'm still loving DIG and you're THE man for helping when there's a problem!

Regards,

Chris

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.