CSS Not Cacheing

Permalink
I just upgrade to 5.6.1.1 and now my theme's css is not loading with the getStyleSheet function. It tries to grab the cached css files but the cached files are blank. I have cleared the cache a few times and the only fix I could find was to use the getThemePath function. Is there any reason why the cached files would be blank? My permissions are good and they are being created just without content. Any help would be appreciated.

//Original Code
<?php echo $this->getStyleSheet('main.css')?>
//Had to change to this to get it to work
<?php echo $this->getThemePath();?>/main.css

dwayneparton
 
andrew replied on at Permalink Best Answer Reply
andrew
This is a 5.6.1.1 bug. We are releasing 5.6.1.2 very shortly which should rectify it.
stratumsystems replied on at Permalink Reply
Thanks for the response, Andrew.
Any idea on an ETA?
Is there a work around in the meantime?
stratumsystems replied on at Permalink Reply
Answering my own question... After a couple seconds of thought, I came up with the following work-around: manually copy the .css files and other missing files into the cache via FTP.

This seems to work for now.
andrew replied on at Permalink Reply
andrew
We just released 5.6.1.2, including to the dashboard remote updater.
WillemAnchor replied on at Permalink Reply
WillemAnchor
I have the same problem, even after the upgrade.
Cache is off and cleared.
The page is still loading from cache.
header.php:
<link rel="stylesheet" type="text/css" media="all" href="<?php  echo $this->getStyleSheet('css/base.css');?>"  />


page source:
<link rel="stylesheet" type="text/css" media="all" href="/harry2/files/cache/css/anchor_theme1/css/base.css"/>
porosenoq replied on at Permalink Reply
The same problem here. I've spent hours trying to figure out why my css (custom built theme) isn't loading. Actually the strange thing here is that when I open the site from the local machine the files are hosted on - everything is fine, the css loads and everything is ok. When someone tries to open it from a remote computer the css was not working. I've tried clearing the cache and stuff, but nothing worked for me. The only solution I've found working was changing the way I define the css that has to be used:

Not working:
<link rel="stylesheet" type="text/css" href="<?php print $this->getStyleSheet('main.css'); ?>" />

Working:
<link href="<?php echo $this->getThemePath()?>/main.css" rel="stylesheet" type="text/css" />