0

I've run into an issue that crops up when I make a change to a Drupal site - www.productworld.com

This is how the problem crops up:

  1. Make a change to site, e.g. add javascript tracking code or adding a new static webpage.

  2. When NOT logged in as admin (viewing the site as a regular visitor), the homepage is now screwed up. It appears that the CSS and JavaScript for the homepage aren't loaded. When logged in as an admin, I see a cached version of the site, looking as it should. I use two separate browsers to confirm the problem - one where I'm logged in as Drupal admin in Chrome, and two where I view the site in Firefox as a non-logged in site visitor.

Here's some screenshots of what the site looks like when the problem crops up:

https://i.stack.imgur.com/DhqPW.jpg

https://i.stack.imgur.com/8Lyv3.jpg

https://i.stack.imgur.com/m28RR.jpg

https://i.stack.imgur.com/Kutrc.jpg

Note: the company images that you see (iWatt, Roal, Assa Abloy etc) should be in a nodequeue (a jQuery image slideshow), but instead they appear one after the other. The blue box with the gold call to action appears way down the page. This is what leads me to believe that the CSS and JS isn't loading.

3.Clearing the Drupal cache fixes the issue.

It's obviously highly undesirable to have a site that gets screwed up everytime a simple change is made to it.

If anyone has run into a similar issue, please let me know.

Thanks.

Snake Eyes
  • 16,287
  • 34
  • 113
  • 221
patrickk
  • 13
  • 1
  • 1
  • 6

1 Answers1

0

When you make changes to the site with caching enabled it will cause problems. This is because it will be using some cached copies of earlier files.

I tend to make changes to a development version of the site, then roll them out to the live site and clear the cache.

Undefined
  • 11,234
  • 5
  • 37
  • 62
  • Interesting perspective. I'll experiment with turning off caching, making a change, then turning caching back on. Hopefully that way I can have my cake and eat it too. – patrickk Aug 09 '12 at 12:42