cache problem with stylesheets

Permalink 2 users found helpful
I just upgraded to 5.6.1.1 and now I'm having no end of difficulties with my stylesheets. It doesn't seem to matter whether I have all of the caches turned on or off.

If I have just cleared the cache, or changed a cache setting, then in the head section I get my stylesheets loaded like this:

<link rel="stylesheet" type="text/css" href="/themes/organica_custom/stylesheets/base.css">


But as soon as I do anything on the page, such as go into edit mode, or refresh the browser page, the stylesheets are immediately trying to load from the cache, like this:

<link rel="stylesheet" type="text/css" href="/files/cache/css/organica_custom/stylesheets/base.css">


The problem is, these files in the cache had 0 bytes. I deleted them all from the cache folders, so now there are none. It doesn't matter how often I change the cache settings or clear the cache, they never come back to that location in the cache. I don't know why. But it's only since I upgraded to this version.

So, I guess I could always go back.

I notice there are a bunch of other files still hanging out in the /files/cache/ folder, should I just try deleting them and seeing what happens?

Richard

stretchrt
 
TorstenKelsch replied on at Permalink Reply
TorstenKelsch
I have the same issue. I noticed that the cached CSS file (/files/cache/css/theme/main.css) has 0 byte. Concrete5 seems to pull the styles from this cache instead from the original theme folder, altough I disabled caching.

The only solution seems to revert from 5.6.1.1 to 5.1.6.
porsch replied on at Permalink Reply
Same problem here. Thought it was something I did. Seems to only happen with the stylesheets from my custom theme as the download packages seem to work fine.
stretchrt replied on at Permalink Reply
stretchrt
somebody's already submitted a bug for it:

http://www.concrete5.org/developers/bugs/5-6-1-1/typography-file-ca...

If you guys go and confirm it might help to get it resolved quicker.

You're right though, it's only the files from a custom theme ... and the work-around is to use getThemePath() in your theme header.php instead of the getStyleSheet() method.
TorstenKelsch replied on at Permalink Reply
TorstenKelsch
Yes, I can confirm that this solution works. Thank you for helping us!
splashby replied on at Permalink Reply
splashby
This worked for me too. Thanks. <<the work-around is to use getThemePath() in your theme header.php instead of the getStyleSheet() method.>>