I have developed website using drupal 7. I created block using Views Slideshow Cycle. I uploaded the site to server. The slideshow not displayed in live site. But after clearing cache(using configuration->Development->Performance) the slideshow is visible.The problem is that i need to clear the cache frequently to display the slideshow. The below image is the site without slideshow.slideshow not visible

This is the site with slideshow after clearing cache.slideshow is visible after clearing cache

I am also having hidden fields using field permission. That are also visible to anonymous users. But I gave the field view permission only to authenticated users. Those fields are hidden for anonymous user after clearing cache.
I didn't enabled cache pages and cache blocks. But the site in my local system does not have this issue. These issue only with my live site. My hosting server is apache.
I have this problem for a month. Please suggest me a solution

  • The only reason I can think of is the in the Views Caching you have enabled "Site Wide Caching". The view is being cached for anonymous user and anonymous user doesn't have the permission to View the slide show. – Gokul N K Oct 21 '13 at 12:20
  • hi @gokul-n-k, As I already mentioned, I disabled the cache pages and cache blocks in Performance settings. The slideshow is not displayed for administrator also. After clearing cache only the slideshow block is visible. – shiva Oct 21 '13 at 12:31
  • 3
    Possible duplicate of How can I have the JS/CSS cache refresh on every page load? – kenorb Nov 24 '15 at 13:20

There is an issue when views, javascript and caching are used in combination. Some information that may be of help:

https://drupal.org/node/1873970 https://drupal.org/node/1811828 https://drupal.org/node/1984774

As far a I can understand the cached page or block cause the js to fail. In another answer it is stated:

This may be a timing issue, flexslider may require the images to be loaded when it is called so it can work off their attributes, remember that $(document).ready() fires after the DOM has finished loading whilst $(window).load() fires after all images on the page have loaded - giving you intermittent results if they are cached etc, replace:

$(document).ready(function(){ ... }); with

$(window).load(function(){ ... });

I have not found a sure fire answer /solution to the issue and may broaden out the question to see if there is an advised fix for views+cache+js=problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.