- This topic has 13 replies, 6 voices, and was last updated 3 years, 1 month ago by Tom.
-
AuthorPosts
-
October 26, 2020 at 11:52 am #1505204Clayton
Hey guys,
I’m using Autoptimize to help cache and minify CSS HTML and Javascript. It works well but there does seem to be a conflict. When I have the
External File
option chosen for the Dynamic CSS Print Method option it doesn’t update. With Autoptimize deactivate the external file option seems to work fine.Since Autoptimize is such a popular option for caching and minification with over a million installs I thought it was worth checking on this to see if there is something to be done.
October 27, 2020 at 2:17 am #1505833DavidStaffCustomer SupportHi there,
what doesn’t update ? Changes made in the Customizer ?
Let me know
October 27, 2020 at 4:29 am #1505975ClaytonYes. For example the color of the footer bar or the wrapper width.
October 27, 2020 at 7:08 am #1506154DavidStaffCustomer SupportHave you tried clearing the autoptimize cache after making those changes?
Personally i never develop or customize with a cache plugin enabled as its bound to cause a headache.
October 27, 2020 at 7:58 am #1506520ClaytonYes, I have cleared the cache. I try not to as well but some changes need to be made after the fact. Okay, well since I know what’s causing it I can avoid it but I wanted to let you know that the external css print method seems to be conflictingz
October 27, 2020 at 9:53 am #1506680TomLead DeveloperLead DeveloperStrange, I would have thought that Autoptimize would clear its cache whenever changes are made (Customizer saved etc..).
We’ll look into whether or not this is something we can fix.
October 27, 2020 at 10:06 am #1506701ClaytonThat’s a good point. I’ll double check with them now that I know what the specific conflict is and maybe that can do something about it on their end. By the way really loving GP 3 and GB.
October 27, 2020 at 10:56 am #1506780ClaytonFigured it out. By default Autoptimize excludes the
wp-content/uploads
directory which is where the external CSS file is stored by GeneratePress. I’ve removed that exclusion rule and it all seems to be working as expected. Just wanted to post here just in case anyone else runs into the same issue.October 27, 2020 at 1:58 pm #1506987TomLead DeveloperLead DeveloperAh, thanks for letting us know! Really appreciate it 🙂
December 6, 2020 at 8:53 am #1569443Rylan UrbanThanks. I had the same issue. Removing
,wp-content/uploads
fixed it.March 11, 2021 at 4:05 pm #1691818acelaGosh, thank you! I was just about to post/ask about this. Using Autoptimize with its default settings plus GeneratePress’ recommended settings was not aggregating
generatepress/style.min.css
and I couldn’t figure out why…Wasted a bit of time trying to sort it out and didn’t think to review AO’s default “exclude” field.
In fact, the settings screenshot on GeneratePress’ help page even shows the
wp-content/uploads
directory as excluded. Tom and David, do you think it’s worth addressing/fixing this there? It could help other folks too, and improve customer site optimization by not loading this additional file separately.https://docs.generatepress.com/article/configuring-autoptimize/
Thanks!
March 11, 2021 at 7:51 pm #1691915ElvinStaffCustomer SupportHi there,
Thanks for letting us know. Glad you got things sorted.
As for fixing this: It’s not really a theme issue as it’s on Autoptimize’s side of things.
But yeah, I think this is worth atleast a mention for users generating external CSS. We’ll see when we can add this in on the documentation. 😀
March 12, 2021 at 7:24 am #1692670acelaThanks Elvin! You’re absolutely right that it’s not a GP theme issue at all.
However, Autoptimize is extremely popular with over 1 million installs (you even use it on your own site) and GP’s generated file will not be included in CSS aggregation with AO’s default settings.
So, highlighting (“fixing”) this on your AO recommended settings help page so that GP users can be sure to achieve maximal optimization of the theme is great. 🙂
March 12, 2021 at 9:41 am #1692828TomLead DeveloperLead DeveloperAgreed. I think it may even be worth looking at moving the file outside the
uploads
folder.For now, we’ll mention this in our documentation to prevent further wasted time.
Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.