Wordpress LScache Plugin: The image not showing and error image/svg+xml
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello, The images on my website are not showing. When opening the original URL of any image, it generates a URL is: data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%201000%201000%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3C%2Fsvg%3E How to fix it? Thanks The page I need help with: https://www.petmart.vn/danh-muc/meo/thuc-an-meo/thuc-an-hat-cho-meo Screenshot: https://i.imgur.com/ETOSP9m.png https://i.imgur.com/OeSI0aH.png Hi, It shows , you enabled defer JS or lazyload , it will delay the image loading you can try disable these 2 options , purge all Best regards, Possible reason: You use Cloudflare and LiteSpeed cache at the same time. Both are HTTP cache. This cant work and may cause more issues. To check if the use of both cache is the reason for your reported issue, temporary disable both and try again. @CacheCrawler : I have turned it off and cleared all cache. But it still has the same error. I tried following the instructions of @CacheCrawler , I disabled Cloudflare cache and my problem was solved. It seems that the error is caused by using both Litespeed and Cloudflare tools at the same time, right? I wonder which tool to use for better cache? After disabling cloudflare cache. I noticed the CPU and Memory on my hosting go up. Something that didnt happen before. So any advice for me? Should I use only Litecache or only Cloudflare. Or both? I wonder which tool to use for better cache? Cloudflare is a Content Delivery Network (CDN). It caches the request in similiar way as LiteSpeed does it, but LiteSpeed is more flexible, is faster than Cloudflare and has a lot of functions for optimizing. But that doesnt mean that Cloudflare is bad. The advantage of Cloudflare comes if you have a lot or more visitors from outside of your country. If you have only less visitors from other countries Cloudflare doesnt make sense and can cause decrease loading time. A alternative to Cloudflare is LiteSpeeds https://quic.cloud. With this you get both, a CDN and cache, but optimized in combination. Should I use only Litecache or only Cloudflare. Or both? Both is no good idea because it causes issues. If both cache are purged and if they are cached after first request the traffic only comes from Cloudflare and cache from LiteSpeed is no more in use. So, it doesnt make sense to use both and btw. you wont get double speed if you use both! @CacheCrawler Thanks for your important information. It really helped me understand this issue better. I will consider your suggestions. Great. Thanks again. An alternative for my last post could be using Cloudflare only for static files. Additional information you should read: https://blog.litespeedtech.com/2021/07/26/cdns-with-kevin-fwu/ @CacheCrawler My website keeps getting ddos attack. If I turn off cloudflares cache, my CPU and memory increase beyond the limit , making the website unable to access Error establishing a database connection . I am required to use Cloudflare cache. I have tried disabling Litespeed cache and the error is still there. I assume this problem is caused by Cloudflare? anw but I cant disable it.. Screenshot CPU and Memory: https://i.imgur.com/o4wBE7Z.png Protection against ddos is the big advantage of Cloudflare, so its up to you to decide what is better for you. @savoir-aimer I dont think that the high load comes from a ddos. If your page isnt cached it costs a higher load for each request as long as each URL isnt cached. That can mean that your server isnt strong enough or your WP installation has too much data to process. Thank you so much @CacheCrawler
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference