[LSCache - WordPress Plugin] .htaccess backups multiple times per minute

#1
Hello,

I installed the LiteSpeed Cache plugin on one of my WordPress sites and I see that multiple .htaccess backups are generated per minute. After around half an hour I have over 1400 .htaccess backup files.

Code:
# ls -la .htaccess_lscachebak_* 
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080606
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080607
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080608
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080609
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080611
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080612
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080616
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080617
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080618
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080619
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080620
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080622
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080623
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080624
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080625
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080626
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080627
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080628
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080631
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080632
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080633
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080634
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080635
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080636
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080638
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080639
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080640
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080641
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080642
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080643
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080644
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080645
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080646
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080648
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080650
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080651
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080653
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080654
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080657
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:06 .htaccess_lscachebak_160826_080659
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:07 .htaccess_lscachebak_160826_080701
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:07 .htaccess_lscachebak_160826_080702
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:07 .htaccess_lscachebak_160826_080703
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:07 .htaccess_lscachebak_160826_080705
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:07 .htaccess_lscachebak_160826_080709
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:07 .htaccess_lscachebak_160826_080713
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:07 .htaccess_lscachebak_160826_080714
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:07 .htaccess_lscachebak_160826_080715
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:07 .htaccess_lscachebak_160826_080716
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:07 .htaccess_lscachebak_160826_080718
-rw-r--r-- 1 osiogr osiogr   9916 Aug 26 08:07 .htaccess_lscachebak_160826_080720
-rw-r--r-- 1 osiogr osiogr  10045 Aug 26 08:07 .htaccess_lscachebak_160826_080721
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:07 .htaccess_lscachebak_160826_080723
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:07 .htaccess_lscachebak_160826_080724
[...]
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083832
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083833
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083834
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083836
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083838
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083839
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083840
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083841
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083842
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083844
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083845
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083846
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083847
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083848
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083849
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083850
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083851
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083853
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083854
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083855
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083856
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083857
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083858
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:38 .htaccess_lscachebak_160826_083859
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083900
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083901
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083902
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083903
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083904
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083905
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083907
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083909
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083913
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083916
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083917
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083919
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083921
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083923
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083924
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083925
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083926
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083927
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083928
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083929
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083930
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083931
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083932
-rw-r--r-- 1 osiogr osiogr   9913 Aug 26 08:39 .htaccess_lscachebak_160826_083933
-rw-r--r-- 1 osiogr osiogr 101916 Aug 26 07:43 .htaccess_lscachebak_orig
Code:
# ls -la .htaccess_lscachebak_* | wc -l
1496
Any idea why this is happening? I'm running the WordPress LiteSpeed Cache plugin v1.0.9 with LiteSpeed v5.1.7 2-CPU license.

Best regards,
George T.
 

KevinFwu

Administrator
Staff member
#2
Hi George,

Do you see any particular differences between each backup?

We changed the code to back up to a different file whenever someone changes a setting. I am not sure why so many are triggered so quickly, so if we can figure out what differences are made, it may be easier to track down the issue.
 
#3
Hi Kevin,

No there's no difference between the files. As you can see all backups taken at 08:06 for example have the same file size.
And the difference between the first backup files (9916 bytes) and the last ones (9913 bytes) is that I removed some empty lines from the end of the file. Other than that, all 1400+ backup files as well as the original .htaccess file are exactly the same.

I have now disabled the plugin as the htaccess backups wouldn't stop being generated, but I will try it again later tonight when there's less traffic on the site.
 

KevinFwu

Administrator
Staff member
#4
I see. When it is more time appropriate, could you pm me the ssh & WP admin information for your server? I have a general idea of where the possible source of the problem is, but won't know unless I can reproduce it.
 

Michael A

Administrator
Staff member
#5
Hi George,

We just released 1.0.9.1 which we hope will include a fix for your problem :p

If this doesn't fix it, please pm me with temporary access details so we can check into this further.

Regards,
Michael
 
Top