Unable to clear less cache?
Permalink Browser Info Environment
Hello,
I'm now working into doing some simple updates to the Verdana them, namely typography changes like increased body font size and line height.
I've got those updates made in the packages/theme_verdana/themes/verdana/css/presets/organic.less
For reference, it commented out the original settings with //
(I'm new to .less btw)
Then updated with my own.
I Cleared Cache, Cache settings are in developer mode still (Less Cache is off).
But I'm not seeing my changes take effect.
Nor can I find via google a tut that shows how to recompile the .less CSS file.
Any advice?
I'm now working into doing some simple updates to the Verdana them, namely typography changes like increased body font size and line height.
I've got those updates made in the packages/theme_verdana/themes/verdana/css/presets/organic.less
For reference, it commented out the original settings with //
(I'm new to .less btw)
Then updated with my own.
I Cleared Cache, Cache settings are in developer mode still (Less Cache is off).
But I'm not seeing my changes take effect.
Nor can I find via google a tut that shows how to recompile the .less CSS file.
Any advice?
Type: | Pre-Sale |
---|---|
Status: | In Progress |
Yeah, that's how I tracked it down.
Web inspector is showing me the following on the body tag, set in main.css, line 1772
I then tracked those down to /presets/organic.less, where I revised like this:
Pretty simple changes, based on what I've learned in the excellent book "On Web Typography" by Jason Santa Maria for A Book Apart (love those books).
I like the default typography, but there's some important things I learned from that book that I wanted to apply to the typography here.
Not sure why it won't update?
Should I remove out the commented out "//v0:" lines? I left them there for reference, didn't think it would cause an issue, but maybe?
Any ideas?
Also, I just edited them directly in the packages/verdana_theme folder.
While I've been working with c5 since 2008, I'm still foggy on how to properly override a package theme.
Is there a better way for me to use to just override it w/o touching the original?
Web inspector is showing me the following on the body tag, set in main.css, line 1772
body { font-family: PT Sans; font-size: 1.3rem; // I want this to be 1.8rem line-height: 2; // and this to be 1.6 font-weight: 300; color: #29221b; }
I then tracked those down to /presets/organic.less, where I revised like this:
LINE 52: //v0: @body-type-font-size: 1.3rem; @body-type-font-size: 1.8rem; LINE 141: //v0: @line-height-base: 2; @line-height-base: 1.6;
Pretty simple changes, based on what I've learned in the excellent book "On Web Typography" by Jason Santa Maria for A Book Apart (love those books).
I like the default typography, but there's some important things I learned from that book that I wanted to apply to the typography here.
Not sure why it won't update?
Should I remove out the commented out "//v0:" lines? I left them there for reference, didn't think it would cause an issue, but maybe?
Any ideas?
Also, I just edited them directly in the packages/verdana_theme folder.
While I've been working with c5 since 2008, I'm still foggy on how to properly override a package theme.
Is there a better way for me to use to just override it w/o touching the original?
Okay, I'm really confused now.
I went thermo nuclear on it, and it's still not working.
I tracked down main.css to /application/files/cache/css/verdana/main.css
Made a backup of it (just in case) then deleted it.
Refreshed the site thinking this would force .less to recompile with my updates in place.
It recompiled, created a new main.css file, but it's still got the old settings!
So then, I opened the new main.css file, and manually updated those 2 CSS tags. Saved.
Refreshed. Still the old settings show.
I'm using Safari 6.2.5 and have Disabled Cache activated and cleared the cache every time.
So now I'm totally lost as to why nothing seems to work.
Any ideas?
I went thermo nuclear on it, and it's still not working.
I tracked down main.css to /application/files/cache/css/verdana/main.css
Made a backup of it (just in case) then deleted it.
Refreshed the site thinking this would force .less to recompile with my updates in place.
It recompiled, created a new main.css file, but it's still got the old settings!
So then, I opened the new main.css file, and manually updated those 2 CSS tags. Saved.
Refreshed. Still the old settings show.
I'm using Safari 6.2.5 and have Disabled Cache activated and cleared the cache every time.
So now I'm totally lost as to why nothing seems to work.
Any ideas?
When I said I emptied the cache every time, I was referring to the browser cache.
Realized I might should empty c5's cache too.
So I did.
checking /files/cache that seems to work properly.
All cache files were gone, including /css/verdana/main.css
Visited the page, saw the cache rebuild.
main.css till has the old settings.
Manually updated it just to see.
No dice.
Seems to be some quirk in the cache somewhere.
Thoughts?
Realized I might should empty c5's cache too.
So I did.
checking /files/cache that seems to work properly.
All cache files were gone, including /css/verdana/main.css
Visited the page, saw the cache rebuild.
main.css till has the old settings.
Manually updated it just to see.
No dice.
Seems to be some quirk in the cache somewhere.
Thoughts?
I may have found the issue, but not sure what's causing it.
I noticed Web Inspector was showing 8 errors.
Checked those, and they're all the same:
That folder is obviously there. Double checked via SFTP to be sure.
Not sure what's causing the error tho.
Does this help?
I noticed Web Inspector was showing 8 errors.
Checked those, and they're all the same:
Error: Failed to load resource: the server responded with a status of 404 (Not Found) (css, line 0) http://www.site.com/packages/theme_vedana/themes/vedana/css/
That folder is obviously there. Double checked via SFTP to be sure.
Not sure what's causing the error tho.
Does this help?
I'm having the same issues. I have the latest version of Conrete5. Cleared cache and all. It keeps using the old cached main.less file.
I'm having the same issues. I have the latest version of Conrete5. Cleared cache and all. It keeps using the old cached main.less file.
The last version fix these issues about blank links.
I know that if the Core Version is 5.7.3.1 they are bugs about css cache.
If you are using last concrete version, you must disable concrete cache (all settings to off) and the best is to disable browser cache too.
I'm working like this when i'm developing theme and all is good.
BUT
When the site or a page doesn't use the default preset, customization is hell. this come from Concrete5 not VEdana or other theme.
So the best is to work on the default preset (you can copy all the code from another preset)
If you are using last concrete version, you must disable concrete cache (all settings to off) and the best is to disable browser cache too.
I'm working like this when i'm developing theme and all is good.
BUT
When the site or a page doesn't use the default preset, customization is hell. this come from Concrete5 not VEdana or other theme.
So the best is to work on the default preset (you can copy all the code from another preset)
Did you ever figure this out? I am having the same issue.
The only way to recompile the theme preset .less is to select another present then reselect said preset and save.
The only way to recompile the theme preset .less is to select another present then reselect said preset and save.
I solved my issue. My webhost used a separate caching system. Cleared that cache and problem solved.
I've updated to the latest version and this no longer seems to be an issue at all.
Try to locate with the web-inspector (in chrome, firefox or Safari) witch rule have effect on your text. It's perhaps a rule from Bootstrap that you will need to change.