• Resolved Joe Bloggs

    (@joe-bloggs)


    Hey Diana,

    I’ve been using your plugin for years now and I really love it. 😻

    But I recently came across an issue where I had to copy the ‘wp-content/uploads’ folder from one site to another and in the ‘/uploads/custom-css-js’ folder found close to 10,000 files.

    It seems like a new file is generated every single time I amend the CSS or JS and hit the Save button.

    So my question is, is that what’s happening? And does it need to be happening? Is there any way I could clean all these files periodically? Delete them?
    Is there any settings in the option that could possibly delete all the files periodically?

    Cheers, Joe

Viewing 1 replies (of 1 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    Hello Joe,

    the plugin creates a cache file for every CSS/JS custom code and saves it in the /wp-content/uploads/custom-css-js/ folder. So, if you have 20 CSS/JS custom codes defined on the “WP Admin -> Custom Codes” page, then there should be a total of 20 cache files in the aforementioned folder. It definitely shouldn’t create a different file every time a custom code is saved.

    The cache file’s filename should be of the [post_id].css or [post_id].js form. Every time a custom code is saved the same cache file is overwritten.

    If a new cache file is created on your website every time a custom code is saved, could you tell me the filename pattern of the newly created cache files? For example: open one of the custom CSS code, notice the page’s ID (the number following the “post.php?post=” string in the URL, let’s say it is 123), make a small change, save, then look in the /wp-content/uploads/custom-css-js/ folder if there is a new file created, is it still 123.css or is it called differently?

Viewing 1 replies (of 1 total)

The topic ‘New file generated in uploads/custom-css-js folder every time CSS or JS is saved’ is closed to new replies.