Disable caching of slideshow frames

vacilando - May 1, 2009 - 11:57
Project:Views Slideshow
Version:6.x-1.0-beta2
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:duplicate
Issue tags:cache, slideshow, views
Description

Hi,

This module has fantastic of potential. However, despite a night of searching and trying, there's this little thing I am not able to fix... I'd appreciate any help.

I've set up my slideshow to show items randomly, which works.

However, each displayed "frame" of the slideshow is also dynamic in my system (you can try that with randomly generated numbers) - that is, each frame should be different when it loads in the slideshow.

Unfortunately, and that's the problem, it is not. If you test it on a small set of items - e.g. 5 - the slideshow will show always the same 5 items.
When I reload the page, the 5 items are all different from the previous page, but they will not change until next page reload.

This means to me that there is some kind of views cache, so in the module code that generates my items I've used $view->is_cacheable = FALSE; but it did not help. Any idea how to switch off whatever cache is preventing items from being re-generated in a slideshow.

#1

naught101 - July 28, 2009 - 11:26

I don't think this is caching. The view actually loads all the slides, and views_slideshow hides all but the first, and then steps through them, hiding the previous one (with css - display:none), and then showing the next one. It will show as many pages as you've set the view to contain in "items to display".

This is the same as a normal "random" view. It will show 5 random entries, and they won't change until you reload. Basically, the view is doing the random-ness, the slideshow can only show the slides that the view contains. The slideshow randomness (in "slideshow sort order") is just the order in which the javascript steps through the items provided by the view.

I have a feeling that this would actually require some AJAX/AHAH additions to views itself, and my guess is that this is a wont-fix for views_slideshow.

#2

naught101 - July 28, 2009 - 11:31
Component:Documentation» Code
Category:support request» feature request
Status:active» duplicate

yep. See here: #323366: Ajax loading support

 
 

Drupal is a registered trademark of Dries Buytaert.