• Resolved dimal

    (@dimalifragis)


    WordPress 6.1 and PHP 8. Preload doesn’t work. I set the preload to 60 minutes, i press preload now.

    I get preload in 0 0 seconds, nothing is preloaded, i refresh and see Full refresh in 58 minutes, then after 60 minutes also nothing is preloaded.

    All in all, preload doesn’t work for some reason. My cron is working just fine.

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @dimalifragis

    Do you have Garbage collection turned on? If so, can you try disabling it and see how that impacts your Preload?

    Thread Starter dimal

    (@dimalifragis)

    Hi and thanks for the reply. Due to several issues with the plugin, we have switched to something else.

    Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Thanks for the update!

    Thread Starter dimal

    (@dimalifragis)

    I was able to test this with an other client’s site.

    When Refresh preloaded cache is disabled (0), MANUAL preload works like a charm. When you enable the preload scheduler, it doesn’t.

    Disabling also the Garbage collection (as you suggest to try), doesn’t help.

    Plugin Contributor Mark (a11n)

    (@thingalon)

    Hi @dimalifragis,

    Thanks for your reports. First, I can assure you that PHP 8, WordPress 6.1, and FastCGI shouldn’t be a problem here; I have tested with all of these environments.

    I also tried disabling garbage collection (setting Cache Timeout to 0), even though my understanding is that in preload mode this setting should be irrelevant. This seems to have no effect.

    I agree that Garbage Collection shouldn’t have an effect on this, however @bruceallen suggested it as we recently had another forum user report that having GC set to anything other than 0 was deleting their Super Cache files for reasons we haven’t yet tracked down.

    Thank you both for checking and reporting on this setting, we can rule this out as a factor in your cases.

    In order to track down what is happening, would you mind trying out DEBUG mode and triggering a Preload?

    We have instructions for enabling DEBUG mode here: https://github.com/Automattic/wp-super-cache/wiki/How-to-enable-debug-mode

    Set your preload time to 0 to turn off automatic refreshing, and then click the “Preload Now” button. Give it a few minutes, then check out the DEBUG log for information.

    It should look something like this:

    wp_cron_preload_cache: got 100 posts from position 0.
    supercache dir: /home/test-user/example.com/subdir/wp-content/cache/supercache/example.com/subdir/sample-page/
    wp_cron_preload_cache: fetched https://example.com/subdir/sample-page/
    supercache dir: /home/test-user/example.com/subdir/wp-content/cache/supercache/example.com/subdir/2023/03/06/hello-world/
    wp_cron_preload_cache: fetched https://example.com/subdir/2023/03/06/hello-world/
    wpsc_delete_files: deleting /home/test-user/example.com/subdir/wp-content/cache/supercache/example.com/subdir/
    wpsc_get_realpath: directory does not exist - /home/test-user/example.com/subdir/wp-content/cache/blogs/
    wpsc_delete_files: reading files: ..
    wpsc_delete_files: reading files: sample-page
    wpsc_delete_files: reading files: 2023
    wpsc_delete_files: reading files: .
    wpsc_delete_files: remove directory /home/test-user/example.com/subdir/wp-content/cache/supercache/example.com/subdir/

    Take a look at the pages it’s fetching – make sure it appears to be fetching all of the posts you expect to be preloaded, and check that there are no lines indicating files are being deleted (note: “remove directory” just indicates it will be removed _if empty_ and is not something to be worried about).

    If you’d like help interpreting your debug mode output, please feel free to send it to me – but please be sure to edit out any private information you do not want to post on this forum (e.g.: URLs, private directory names, etc).

    Hi @mjvito,

    Thanks for the archaelogy there! I went down quite a rabbit hole with those threads in the Yoast forums (they don’t seem to have corresponding issues in their Github repository, though).

    I’ve pinged @thingalon to take a look when he gets a chance.

    Best,

    Cena

    Thread Starter dimal

    (@dimalifragis)

    I think guys you highjacket my topic. Where are those SQUAD guys form WP admin?

    Are RULES for EVERYONE?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Preload doesn’t work’ is closed to new replies.