I've done quite a few Gantry 5 websites now but I am stumped completely on a new development site that I have encountered a 'serious' caching issue.
I have uploaded different custom.scss files from other sites into the Hydrogen custom/scss folder in testing. Even though I can view each 'custom.scss' file that I uploaded in the cPanel File Manager, as each are commented with the domain name that is styled for, the site never loads up the new style. I have no caching on the cPanel, I have caching disabled on the Joomla Configuration (cache handler is File), I have cleared cache via the Joomla System/Clear Cache, via the Hydrogen template clear cache as well as 'physically' deleted the 'cache/gantry5' folder via the cPanel File Manager. I've completely deleted all history with everything checked on Chrome since the 'beginning of time'. When looking at the CSS via Firebug, it never shows a class styling for 'bg-showcase-a' that is physically in the custom.scss file and the compiled css files do not show the class styling. But it is in the 'custom.scss' file.
I had to go into the "templates/g5_hydrogen/custom/css-compiled" folder and rename the custom-12.css as well as the custom-13.css files by appending '-old' on the end of the filename, ie: 'custom-12.css-old', clear the browser cache and reload for the new styles to actually appear. A new 'custom-12.css' and 'custom-13.css' file was created in the "templates/g5_hydrogen/custom/css-compiled" folder. When I open up the 'custom-12.css' file, the class styling for 'bg-showcase-a' shows up. When I look at the 'custom-12.css-old' file, the class styling for 'bg-showcase-a' does NOT show up.
All of these files are set to '644' permission.
So can someone explain to me 'why' the compiled files were not deleted when the cache was cleared?
Last Edit: 8 years 9 months ago by Luke Douglas. Reason: clarifying a point
Clearing cache is only part of the process. You have to select the template variants and recompile the css via the Recompile CSS button. This will then process your new custom scss rules and create new compiled files.
Hope this helps
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information