lscache_wp icon indicating copy to clipboard operation
lscache_wp copied to clipboard

Unexpected Clear CSS Files

Open CanDenizGokgedik opened this issue 7 months ago • 8 comments

Sometimes, litespeed delete the some CSS files. Elementor's CSS file deleted unexpectedly.

Litespeed clear this folder "wp-content/uploads/elementor/css/"

"wp-content/uploads/elementor/css/post-600.css"

How Can I prevent the delete these css files?

CanDenizGokgedik avatar Apr 25 '25 05:04 CanDenizGokgedik

@CanDenizGokgedik Please create a report ID From LSC => Toolbox => Report => click on "Send to Litespeed" And share the ID generated

Are you sure is LSC that clears them? We clear only files from: wp-content/litespeed

timotei-litespeed avatar Apr 25 '25 08:04 timotei-litespeed

I use Litespeed on every site and to be honest I have never experienced this problem before.

When I use litespeed, the css's are deleted, but when I close it, they are not deleted Could it be due to hosting?

CanDenizGokgedik avatar Apr 25 '25 08:04 CanDenizGokgedik

Does the deleteion happens after you edit a page in Elementor?

timotei-litespeed avatar Apr 25 '25 08:04 timotei-litespeed

Sometimes it happens when I edit.

Even if I don't make any changes, sometimes the css files are deleted in the morning

CanDenizGokgedik avatar Apr 25 '25 09:04 CanDenizGokgedik

Don't think hosting is deleting files I would look into plugins that could clear files: maybe elementor cleanup or general cleanup plugin

timotei-litespeed avatar Apr 25 '25 09:04 timotei-litespeed

I do not use any other plugins.

When I looked at the Elementor code files, I did not find any code that deletes this.

There were people on various forum sites who said that this problem was related to the litespeed cache plugin. I did an a/b test. When I turn off Litespeed, this problem never occurs (I tried it for 1 month).

CanDenizGokgedik avatar Apr 25 '25 11:04 CanDenizGokgedik

I would review Elementor code LSC will not clear Elementor files from upload files.

Can we make a test? I have this PR: https://github.com/litespeedtech/lscache_wp/pull/806 Are you ok with testing it on one of your sites?

timotei-litespeed avatar Apr 25 '25 14:04 timotei-litespeed

@CanDenizGokgedik any news here?

Since 7.2 we added functionality to Clear LSC cache when Elementor Regenerate CSS & Data is run.

timotei-litespeed avatar Jul 03 '25 11:07 timotei-litespeed