svapodream Posted August 3, 2021 Share Posted August 3, 2021 Good morning. I have a problem when I activate the ccc option on both css and js. Basically when you activate the two options the site speeds up a lot but I don't see some css changes I had made to a module. I'll post two pictures to make you understand. As you can see from the second image, those colors are the default of the theme. I tried to clear the cache but the problem is not solved. Link to comment Share on other sites More sharing options...
Mikeey Posted August 3, 2021 Share Posted August 3, 2021 maybe clear the folder(s) /var/cache/dev & /var/cache/prod ? Link to comment Share on other sites More sharing options...
svapodream Posted August 3, 2021 Author Share Posted August 3, 2021 thanks for the reply, but i haven't solved the problem Link to comment Share on other sites More sharing options...
SmartDataSoft Posted August 3, 2021 Share Posted August 3, 2021 Hello, Can you open the compress css via browser tab and check the css in exits or not. . If css exits in compress file in that case their may be css error in the css file. may be some css bracket is not close or invalid code break the css and not allow to run your modified code. Or if the css is not exits in that case clear all level of css from Perfromace, what Mikeey suggest /var/cache/dev & /var/cache/prod ? , browser cache and check hope the issue will solved Thank you Link to comment Share on other sites More sharing options...
svapodream Posted August 3, 2021 Author Share Posted August 3, 2021 The rules are present in the compressed file and are correct. One thing I noticed and that what he doesn't take as priority rules are those of a css file (configCss.css) that is present in the theme configurator module. Since it does not read those rules, it uses by default those of the custom.css file and therefore I see the default colors Link to comment Share on other sites More sharing options...
SmartDataSoft Posted August 3, 2021 Share Posted August 3, 2021 You can add !important in your rule and check. If the other rule didn't set important then your new rule with important will force the rule thank you 1 Link to comment Share on other sites More sharing options...
El Patron Posted August 6, 2021 Share Posted August 6, 2021 note: to see if CCC is useful, check that the CCC of .js and .css files have the same across all pages, index/cat/product. If they are not the same across these different pages then you are better off not using CCC just ensure you have mod_expires.... else you will load redundant data for each page type. one CCC of .js/.css file across all pages was BIG NEW FEATURE in 1.7, but due to lack of verification by addons, poor development of modules/themes..they broke it...it's a shame here is module we wrote to fix CCC of .css, we could not serialize .js so could not fix. https://addons.prestashop.com/en/website-performance/50624-front-end-css-performance-one-css-ccc-all-shop-pages.html sad how this important feature was broken Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now