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:
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:
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
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
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.
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.
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.
Yes, I can confirm that this solution works. Thank you for helping us!
This worked for me too. Thanks. <<the work-around is to use getThemePath() in your theme header.php instead of the getStyleSheet() method.>>
The only solution seems to revert from 5.6.1.1 to 5.1.6.