I just recently launched a Drupal website with a custom theme and I'm having troubles with caching (I think).

http://www.oakandmistletoe.com.au/

First of all, I realize the theme has IE6 issues -- I'm working on that. What are you doing using IE6 anyway!? Get a real browser!

It's a 6.13 site. The theme itself is based off of the excellent Framework theme. The site is hosted on a Dreamhost shared account. The audience is global -- mostly US, Australia and Europe.

The biggest problem is that, fairly often certain people will visit the site and it appears totally without the theme -- plain HTML, no CSS, no graphics. This seems to coincide with my flushing the theme cache via Devel. As in, it will start happening for certain people shortly after I do this. When this does occur, I ask them to do the ol' shift-refresh, but that doesn't seem to have any effect.

The second problem is that old graphics which have been replaced are appearing for certain people fairly often. For this issue, shift-refresh does work, however it's just not practical to tell every user to shift-refresh to get the latest version of the site every time they visit.

I'm wondering first of all why the missing theme issue could be happening, and secondly, what I need to change to optimize the cache settings. Already I have the site settings under Performance set to not cache anything. (This is probably not the right way to go, either.) I've wondered if this is an .htaccess issue. I'm using the default .htaccess file that ships with Drupal.

I've done a lot of searching here and elsewhere. A large part of the problem is that I'm just not sure what exactly the problem is -- whether it's the host, the way the theme was constructed, .htaccess or some admin settings. Any insight anyone can lend to this issue would be incredibly appreciated. Even if it's just a link to something that I can read up on.

Thanks!
Julia

Comments

Jeff Burnz’s picture

Turn on CSS (& JavaScript) aggregation, you have a lot of stylesheets and IE cant handle more than 30, when it goes over 30 IE users will see your site with NO style at all.

juliaset’s picture

Great idea! I can't believe I didn't even think of that. I have heard about that issue before, but just didn't make the connection. Thank you so much, I'll try that out.

So, after changing this setting, if I make any changes to the theme, what do I do? I would guess that I would turn off optimization, upload the new CSS, clear theme cache, and then turn on optimization again?

Jeff Burnz’s picture

You dont need to toggle it off and on, just hit the clear cache button and it will rebuild the cached stylesheets ;)

juliaset’s picture

Ah, very cool. Thanks again....I made the change you suggested and the problem went away!