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.
This is a 5.6.1.1 bug. We are releasing 5.6.1.2 very shortly which should rectify it.
Thanks for the response, Andrew.
Any idea on an ETA?
Is there a work around in the meantime?
Any idea on an ETA?
Is there a work around in the meantime?
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.
This seems to work for now.
We just released 5.6.1.2, including to the dashboard remote updater.
I have the same problem, even after the upgrade.
Cache is off and cleared.
The page is still loading from cache.
header.php:
page source:
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"/>
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:
Working:
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" />