• Resolved francoc30

    (@francoc30)


    I ran Cache Preload with Minify enabled. After completion I noted the number of files cached by the preload and the number of minify files generated. I also checked with File Manager in the sever Control Panel to see the contents in cache/wpo-cache/mydomain.com. The reason I did these investigation is the previous preload cache pages disappeared gradually after a day and as a result site performance decreased. This happen many times so I try to document what happened.
    I notice the wp-sitemap.xml and accomply files also disappear.
    My site is a bilingual site. English and Chinese. The Chinese sections have more visitors. The preload cache has two subfolders, en and zh. The preloaded cache pages disappear mainly in the zh subfolder.
    My cache lifespan is set at default of 30 days.
    Can someone explains why this is happening and how can I correct it? Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • @francoc30 Could you please reduce the cache life span to 24 hours and check if it helps to fix the issue?

    Thread Starter francoc30

    (@francoc30)

    Sure I’ll try that. But what will happen when 24 hours is up? Will the cache pages be purged at that point?

    @francoc30 Yes, the cache pages will be purged after 24 hours.

    Thread Starter francoc30

    (@francoc30)

    Hi Harshad,
    Changing cache lifespan to 24 hrs. did not correct the problem. The number of cached pages gradually decreased over time. I have to run Preload again.

    I am still getting a lot of instances of error:
    20220503T130443: mydomain.com/index.php
    PHP Warning: mkdir(): File exists in /mydomain_path/public_html/test/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 119

    Not sure if that help you to investigate.

    @francoc30 This is warning nothing to worry about it won’t stop the functionality of your site.

    Could you please try to Preload the urls and check the cache size?

    Thread Starter francoc30

    (@francoc30)

    Hi Harshad,
    I have been tracking the cache size (number cache files and total cache size) for over a week. The findings are the same. The number of cache files and size decrease over time in a day. Then I have to run Preload again to keep the performance up, each time. This cycle repeats each day. It should not be like this.

    @francoc30 I’ve tried to reproduce the issue at my side but its working fine for me.

    Have you performed a conflict test yet?

    Try deactivating all plugins except for WP-Optmize and see if it is resolved.

    If so, reactivate each plugin one at a time until you find the culprit. You can check for the issue between activating each plugin, so you can see which one is causing problems.

    Please let us know your findings.

    Thread Starter francoc30

    (@francoc30)

    @bornforphp, I will try that on my development site first. My development site is in the same database as the main site on the server. Its domain name is like, mainsite.com/dev/. Can WPO be installed and run on such structure without conflict/problem?

    Also if I set the cache lifespan to 0 hours or blank, will there be any adverse consequences?

    I also notice in the minify folder, there are two subfolders: assets and header. Asset subfolder contains minify files, but the Header subfolder is empty. Is this normal? If not, why and what causes this?

    @francoc30 Sorry for the delay, yes you can run the plugin on dev site there will be no adverse effects.

    the minify folder, there are two subfolders: assets and header. Asset subfolder contains minify files, but the Header subfolder is empty.

    Yes its normal.

    Thread Starter francoc30

    (@francoc30)

    @bornforphp, thanks for the reply. On the other question:
    “Also if I set the cache lifespan to 0 hours or blank, will there be any adverse consequences?”

    Do you have any advice on that?

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Preloaded cache files disappearing’ is closed to new replies.