• Resolved babydu

    (@babydu)


    Hi, I use your wordpress plugin in my website.

    I’ts a wonderful cache plugin and fast my website.

    But there is a question about it.

    In this directory: /wp-content/litespeed There is a folder named JS, In this folder, lots of js file were generated. It’s really very much and big folder.

    I want to know why they generated so much files? And if there are some bad influences?

    There are these files, and I had deleted them yesteday and they auto generated some files today. Until now, there are 1551 files!

    I had tried the method that you told me in the below, but I couldn’t find The common part like the document said. It didn’t work.

    it's due to combine external/inline JS
    
    when you have some inline JS with random , or per-page string , it will force it to generate one JS file for one page
    
    and if you have a lot of pages, it will generate a lot of it
    
    if your disk has enough space, then you don't need to worry , if not , I'd suggest to turn that option off
    
    if want to keep that option ON and shrink the disk usage , then please check this guide https://docs.litespeedtech.com/lscache/lscwp/ts-optimize/#disk-space-filling-fast

    5tVpSs.jpg
    5tEzWj.jpg
    5tVsAS.jpg

    There is the server information:
    `Server Variables

    SERVER_SOFTWARE = LiteSpeed

    DOCUMENT_ROOT = …/yaogongzi.com

    X-LSCACHE = on,crawler

    LSWCP_TAG_PREFIX = 4a1

    WP_SITEURL = NULL

    WP_HOME = NULL

    WP_CONTENT_DIR = …/yaogongzi.com/wp-content

    SHORTINIT = false

    LSCWP_CONTENT_DIR = …/yaogongzi.com/wp-content

    LSCWP_CONTENT_FOLDER = wp-content

    LSCWP_DIR =…/yaogongzi.com/wp-content/plugins/litespeed-cache/

    LITESPEED_TIME_OFFSET = 28800

    LITESPEED_SERVER_TYPE = LITESPEED_SERVER_OLS

    LITESPEED_CLI = NULL

    LITESPEED_ALLOWED = true

    LITESPEED_ON = true

    LSWCP_TAG_PREFIX = 4a1

    COOKIEHASH = 2e1d423a1…c7d7fb5c351

    • This topic was modified 3 years, 5 months ago by babydu.
    • This topic was modified 3 years, 5 months ago by babydu.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    when you enable the JS combine and inline/external combine :

    some plugin will generate some kind of random string or post id based javascript into the HTML source code as inline JS

    so each of these different string will force LSCWP to generate a new copy of JS files

    e.g. if you have 1000 pages , and these 1000 pages share same inline JS , then you will only have 1 combined JS

    but if you have 1000 pages, and these pages have certain different string (like contains post id or something) , then it will force LSCWP to generate 1000 combined JS files

    you can either turn it off , or find the page-specific difference code and exclude it

    Best regards,

    Thread Starter babydu

    (@babydu)

    But, First, I had closed this option(JS combine) in my website, you cloud look this picture.
    5tVsAS.jpg

    5aBerd.jpg

    Second, I really could’t find the different at two pages. I had checked through this document: https://docs.litespeedtech.com/lscache/lscwp/ts-optimize/#disk-space-filling-fast
    And this is the contrast page, please check it: https://www.diffchecker.com/4bhJwNVU

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    you need to compare with different pages

    e.g. https://www.diffchecker.com/infFXMlb , line 632 , that JS shows differently on each page I think

    try add keyword like native_share_enpoints into JS exclude list and defer JS exclude list , save , purge all , then check again , see if it still build up like before

    Best regards,

    Thread Starter babydu

    (@babydu)

    I am sorry to tell you that it didn’t work when I added it into JS exclude list and defer JS exclude list.

    5Dc6ET.jpg
    5DccUU.jpg
    5DcRC4.jpg

    Plugin Support qtwrk

    (@qtwrk)

    in your screenshot , there are few files sized 405.16 KB , 405.14KB and 405.08KB

    try cross-compare between them via https://www.diffchecker.com/ see if it shows anything

    Thread Starter babydu

    (@babydu)

    I had tested and compared them before, but I can’t understant what it said…
    This is the code…
    https://www.diffchecker.com/2wynFhXM

    Plugin Support qtwrk

    (@qtwrk)

    okay

    please try add cosmoswp= into exclude , purge all , and then wait for some times , see if it still builds up or not

    Thread Starter babydu

    (@babydu)

    I am sorry to tell you that it still didn’t work.
    And I have to tell you I had disable the JS combine option before, I don’t know what should to do now.
    525yOP.jpg

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please upload few of these JS files , to somewhere like Google driver or something , then send the link to support at litespeedtech.com with reference link to this topic

    Best regards,

    Log in to your Cpanel

    Navigate to cPanel > LiteSpeed Web Cache Manager > LiteSpeed Cache Management > WordPress Cache:
    Disable – Disable cache for this site;
    Unflag – Unflag this installation as excluded during Mass Enable/Disable.

    Find your Site and Unflag it.
    Then go to File Manager and Delete the JS, CSS Folder

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘There are so much JS files in my Host.’ is closed to new replies.