• Resolved neikoloves

    (@neikoloves)


    I’m trying to help solve an issue with a site and found WP Hide & Security Enhancer Pro seems to have an issue with caching a massive amount of files in the way it’s setup to masking naming.

    Why doesn’t the cache auto clear itself after a set time frame? I noticed while monitoring the site, this has grown to an enormous size of 128 GB once if I do not hand remove the files using the Cache Clear button or just delete the files in the directory.

    There is no other cache management plugins installed at this time.

    I tried various cache plugins to solve the issue and your software still creates a massive cache on it’s own even with other plugins I tried. It builds all these css and js files in the following directly.

    public_html/wp-content/cache/wph

    In some case I have seen tens of thousands of files here.

    If I turn off the following then it stops creating these file, but then other needed masking stops working as the replacements are ignored without the following settings below.

    CSS Post-Processing type > Combine
    JavaScript Post-Processing type > Combine

    Can you kindly advise on this issue, thank you?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nsp-code

    (@nsp-code)

    Hi,
    When using the CSS and JavaScript post-processing with Replacements, the plugin saves locally the processed data in a form of cached objects, for later usage, to prevent re-processing. So, when the plugin engine parses a content, if a specific asset is found to be already processed, it loads it from the cache. If not being found, it processes it and saves it into the cache.

    If there’s a string/value which changes within the JavaScript code, like a timestamp value, or a unique hash, this will make the plugin to always generate a new cache for this particular code, making the cache size to grow unexpectedly. Such code can be found inline on the HTML page code.

    The solution for this would be to identify this particular JavaScript codes, which should be found within the outputted HTML ( temporary turn off the JS processing to see the code ) then add a representative static part from it at General / JavaScript > Exclude JavaScript Block from processing.

    Or simply switch to In Place instead Combine, then check the cache ( at /wp-content/cache/wph/ ) and compare similar size files to find the dynamic data, then add a chunk of it’s static to the above exclude option.

    If for some reason can’t figure out, contact us and we will check it for you.

    Thanks

    Thread Starter neikoloves

    (@neikoloves)

    There is no way to resolve this without exposing what is being used, the entire idea of this plugin is to mask / hide what is being used. Can you kindly just auto clean the cache files every so many X days hours or something else, maybe using a simple cron job?.

    This is a major flaw that does need resolved, regardless of any outside sources that could make it grow by the hour, day, week and month, you can expect others to even know the issue until they run out of space and even then, they may not discover why it even happened.

    Again this is a flaw that needs solved as I now tested this with out themes just to see how it acts and it’s the same.

    Please solve this issue in your software ASAP, so it’s a non issue, as many core theme have their own caching as well, that can’t even be turned off.

    • This reply was modified 2 years, 8 months ago by neikoloves.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cache Size is Massive and Grows Daily, Breaking The Hosting’ is closed to new replies.