Styles

14 posts by 4 authors in: Forums > CMS Builder
Last Post: March 25, 2008   (RSS)

By Dave - March 25, 2008

Hi Steve,

Yea, you're right it's a CSS caching issue. I've had it happen too, and it is annoying. :( Here's a few ways to deal with it:

1) You can clear your cache in FireFox (Tools > Options > Privacy > Clear Now... > [X] Cache).

2) You can have it add a random number to the end of the wysiwyg.css url in tinyMCE.init to trick the browser into not caching the CSS (see TinyMCE docs on that here). We haven't done this one because most of the time you want it cached because it's faster.

3) Or for development, this is the trick I use. I load the CSS url directly in my browser (or .js file, those stuck in the cache too). The url would be something like this: http://yoursite.com/cmsAdmin/css/wysiwyg.css

Usually, even that shows the old code, but reloading _that_ file (the .css file) refreshes it in the cache and shows the latest version on the screen. Then it works.

And fortunately you only need to do that in development. I'll give it some thought to see if we can come up with some way make that simpler...

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Styles

By steve_e - March 25, 2008 - edited: March 25, 2008

Hi both -
Thanks for this. It's not a problem really, once you realise what's going on, but after giving up and going to bed, then getting up the next day to find the fairies had apparently fixed what wasn't working the night before made me gibber for a little while until I'd worked it out! :)

It's easy enough to keep an IE window open to see the results immediately though. Thanks for the suggestions!

By Dave - March 25, 2008

Thanks for the update, glad to hear you have a system worked out. :)

PS: The magic internet fairies have fixed many a problem for me as well. And yes, when things start "magically" working it can be pretty confusing! heh

Take care, :)
Dave Edis - Senior Developer
interactivetools.com