• Hi there,

    my question is the same like @danbrady and a second person asked in this thread here about 2,5 years ago.

    Unfortunately, for some reason, neither question was ever answered.

    To quickly cite the core question from that original thread:

    However, my question wasn’t really answered.

    I understand that garbage collection is disabled when preload is set to ON.
    But let’s assume I schedule preload to run once per day.
    What happens after 24 hours, when the second preload scan runs?
    What happens to the old (first day’s) preloaded files?
    Does the preload process automatically delete the OLD cached files, and replace with new versions?

    Thank you so much!

    Best,
    Flo

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yes, the old files are deleted on the next preload.They’re deleted just before preloading of the page.

    Thread Starter rhisflow

    (@rhisflow)

    Hi Donncha,

    thank you for your fast reply ?? !

    Another follow up:

    1) What happens if a post or page gets updated before the next preload run happens?
    Will updating already cached posts delete their cached version?

    2) If that is the case (or if not, let’s assume I manually delete all cache or just one specific page from the preloaded cache):

    What happens if such a page gets visited before the next preload run?

    Will there still be a cached version created for each first visit (just like without preload enabled)?

    Thank you so much ?? !

    > 1) What happens if a post or page gets updated before the next preload run happens?
    > Will updating already cached posts delete their cached version?

    Yes, the old cached file will be deleted on update, and the new version will be cached when someone visits it.

    > 2) If that is the case (or if not, let’s assume I manually delete all cache or just one specific page from the preloaded cache):
    > What happens if such a page gets visited before the next preload run?

    A cached file is created for that page. That’s how this plugin works. Preloading isn’t needed.

    > Will there still be a cached version created for each first visit (just like without preload enabled)?

    Yes.

    Thread Starter rhisflow

    (@rhisflow)

    Got it, that’s very clear, thank you!

    So in other words, the basic way the plugin and its caching mechanism work doesn’t change, whether or not preloading is enabled.

    The only difference is that if preloading is enabled, it “simulates” user visits to each page to create the cached version ahead of time, right?

    Yeah, that’s it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Preload & old cached files’ is closed to new replies.