[Cache] not working | WordPress.org

[ad_1]

Of course, cache is working. Check response headers.

x-litespeed-cache: hit

but there is non default modification in your .htaccess that prevents correct browser caching for dynamically generated sources.

  • This reply was modified 12 hours, 21 minutes ago by CacheCrawler.

Thread Starter
alexg9

(@alexg9)

Hi,

Thank you for quick the answer. Could you tell me what part of the code is wrong? Here is the .htaccess: https://codeshare.io/8p31MJ

I haven’t modified it. In fact the support agent reseted it to make the staging environment accessible:

Hello,

I have reset .htaccess file and updated Site URL and Home URL in wp-config.php. Now the stage website is loading fine.

Please do check and let me know if you have any questions.

Sincerely,

=========
[ Emails deleted, don’t post those again ]

Thank you in advance,

Alex

  • This reply was modified 10 hours, 3 minutes ago by Jan Dembowski.

I’ve checked your .htaccess and can’t find anything unusual. The cause can also be caused by a PHP response header that another plugin has set. Are you using the LiteSpeed webserver or OpenLiteSpeed?

Then, check your installed plugins which could cause it. You give yourself a speed advantage.

Thread Starter
alexg9

(@alexg9)

Swift Performance caching works fine. I’ve disabled all performance plugins except Asset Cleanup (which doesn’t make any changes to headers) and LiteSpeed’s cache still doesn’t work. Here is the list of enabled plugins: https://codeshare.io/zymLjD

Plugin Support
qtwrk

(@qtwrk)

I’m sorry but I failed to understand , what exactly is the issue now ?

Let me asking you a question. What do think will happen if you cache a already cached page?

Think carefully about the answer because your answer decides whether you can be helped or not.

Plugin Support
qtwrk

(@qtwrk)

it depends , but in case of LSWS/OLS + LSCWP + other cache , LSCache will probably cache again the cached page.

Thread Starter
alexg9

(@alexg9)

@serpentdriver I am not saying that Swift Performance is active… I know a little about WPO, at least enough to know that it makes no sense to do that. I am saying that Swift Performance caching works perfectly well, because I have tested it. But Lite Speed does not. Swift Performance is not active. As you can see in the list of plugins I have attached.

@qtwrk the problem is that I have installed LS on my staging to test it and decide whether to replace it with Swift Performance, but the pages are not being served cached.

Plugin Support
qtwrk

(@qtwrk)

what makes you think of that ?

from the http resposne header, you can see x-litespeed-cache: hti this indicates the page is cached by LSCache.

Thread Starter
alexg9

(@alexg9)

Yes, I finally got it to work. Thank you @qtwrk :’)

Topic solved!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer