Ibai Posted March 2, 2023 Posted March 2, 2023 (edited) Hi there, For the last days I'm experiencing caching issues. I haven't changed anything... and suddenly... I don't understand. If I clear the cache from Support page in Admin CP, it comes back to normal. After several hours, the frontend starts to break. First I see as if mobile design was being load in my desktop and eventually all CSS disappears. I can see lot's of 404 errors. It's as if the cached content disappears or becomes corrupt. A couple of examples: When it starts failing loading mobile view in desktop Afterwards, when everything is broken. However, if I go to admin CP everything is okay and I'm able to clear cache. I didn't change any settings. In fact as I thought it could be related to redis, I enabled MySQL cache. But... same result after several hours. Any idea of what is happening here? Cheers, Ibai Edited March 2, 2023 by Ibai
Ibai Posted March 2, 2023 Author Posted March 2, 2023 I see this kind of URLs for resources. Any idea if this is as expected? I don't see this resource in my SFTP...: https://www.fmsite.net/uploads/monthly_2023_02/xfmsite-fm23-guia-mejorar-economia.webp.321c44ae55e9b6306b960bc4c0a85f18.webp.pagespeed.ic.o3BnKX7HUs.webp
Jim M Posted March 2, 2023 Posted March 2, 2023 Looks like you are losing CSS issues here. The software will write the CSS to file when the cache is cleared. If you're seeing this going missing or inaccessible items on your file system, you will need to work with your hosting provider for assistance.
Ibai Posted March 2, 2023 Author Posted March 2, 2023 8 minutes ago, Jim M said: Looks like you are losing CSS issues here. The software will write the CSS to file when the cache is cleared. If you're seeing this going missing or inaccessible items on your file system, you will need to work with your hosting provider for assistance. Seems it has sth related with Apache mod_pagespeed. Maybe IPS is not compatible with this apache module?
Jim M Posted March 2, 2023 Posted March 2, 2023 Basically, the software simply outputs a normal CSS file so if that CSS file is not on your server, it would not be able to read appropriately by the browser. Same for images/etc... If you have something on your server which converts to webp but that image doesn't actually exist then your server/browser can't load it. Ibai 1
Solution Adlago Posted March 2, 2023 Solution Posted March 2, 2023 1 hour ago, Ibai said: Seems it has sth related with Apache mod_pagespeed. This mod is applied to "regular sites". In this case, look for other forms of optimization, but remove this mod. Ibai and SeNioR- 2
Ibai Posted March 2, 2023 Author Posted March 2, 2023 1 hour ago, Adlago said: This mod is applied to "regular sites". In this case, look for other forms of optimization, but remove this mod. Thanks. I wonder what does IPS in order to make this module incompatible 😞 Seemed interesting. Disabled and back to normality.
Adlago Posted March 2, 2023 Posted March 2, 2023 9 minutes ago, Ibai said: Thanks. I wonder what does IPS in order to make this module incompatible 😞 They are probably looking for a balance between cash and reality, ie. any additional, external to the suite, cache creates an issues at some point. For example, I gave up nginx cache server because I got spikes on the first byte over 1.5 seconds and quite often.. Now I use only basic apache and these issues are gone. Also - look for a reasonable sidebar cache time - I use 2 hours, after much experimentation... Etc.
RoHAdmin Posted March 3, 2023 Posted March 3, 2023 This is similar to what we're experiencing. We don't have anything that converts pages to .webp though. I've tried multiple themes so I know it's not a problem on that end.
Ibai Posted March 3, 2023 Author Posted March 3, 2023 52 minutes ago, RoHAdmin said: This is similar to what we're experiencing. We don't have anything that converts pages to .webp though. I've tried multiple themes so I know it's not a problem on that end. Do you have also mod_pagespeed enabled? 12 hours ago, Adlago said: They are probably looking for a balance between cash and reality, ie. any additional, external to the suite, cache creates an issues at some point. For example, I gave up nginx cache server because I got spikes on the first byte over 1.5 seconds and quite often.. Now I use only basic apache and these issues are gone. Also - look for a reasonable sidebar cache time - I use 2 hours, after much experimentation... Etc. I also tried nginx. Now I'm trying cloudflare. From now, I haven't experienced any issue with cloudflare.
RoHAdmin Posted March 3, 2023 Posted March 3, 2023 No I don't have that enabled. We're not using Apache, we're using IIS on a Windows VM.
Marc Posted March 6, 2023 Posted March 6, 2023 On 3/3/2023 at 11:42 AM, RoHAdmin said: No I don't have that enabled. We're not using Apache, we're using IIS on a Windows VM. Unfortunately we dont advise the use of IIS (and indeed dont support the product being used on that software) as its known to cause issues.
RoHAdmin Posted March 9, 2023 Posted March 9, 2023 On 3/6/2023 at 2:06 AM, Marc Stridgen said: Unfortunately we dont advise the use of IIS (and indeed dont support the product being used on that software) as its known to cause issues. We're going to look into migrating to Apache if that's possible but that sounds like a fresh set of headaches. It would be great if we could just move our site to the Invision Cloud infrastructure and in that begin using Apache. Not sure how smooth that process is but we'll look into it.
Marc Posted March 9, 2023 Posted March 9, 2023 We can certainly assist with you in getting your site over to cloud, if thats what you would prefer? It would certainly save you the hassle of ever having to deal with that kind of thing. Would you like me to get you a ticket sorted so we can discuss further?
Recommended Posts