• Hi, great pluging!

    I have four timeout rules. One clears the whole site with 7 days period. The other three clear the cache of three different pages every 10 hours, the definitions are the same except the url.

    The problem is that from the three rules, only one page gets deleted. I have checked on several of my sites. If I look at the cron events, there are all the three scheduled but if I run one of the three manually, it is performed and all the three are rescheduled.

    Thanks.

    • This topic was modified 3 years, 2 months ago by PumpaXXL.
Viewing 11 replies - 16 through 26 (of 26 total)
  • Plugin Author Emre Vona

    (@emrevona)

    do you mean that the cache timeout feature works properly?

    Thread Starter PumpaXXL

    (@pumpaxxl)

    No:

    1) EACH of the three pages should be cleared every X minutes.
    2) But! EACH X minutes period clears ONLY ONE page cache.

    It means for example:

    1) If we have all the three caches, only the first one gets cleared after the first X minutes.
    2) If the first cache is regenerated and we have all three again, the first one gets cleared after the next X minutes.
    3) If the first cache is not regenerated, then the second cache is cleared after the second period. Now we have only one cache. etc….

    Plugin Author Emre Vona

    (@emrevona)

    now I got it. This situation is very difficult to detect. Let’s test them last time.

    Here are the cache creation times. Please do not clear cache manually. If the times will not change, it means that there is a problem. if they will change, it means that, there is no problem. Let’s wait 5-6 hours and check the times.

    https://test.prepsite.cz/technicka-podpora/ – 20-01-22 9:15:03
    https://test.prepsite.cz/spustte-si-kurz-zdarma/ – 20-01-22 9:15:22
    https://test.prepsite.cz/registrace-spatne-zadana-adresa/ – 20-01-22 9:15:38

    Thread Starter PumpaXXL

    (@pumpaxxl)

    Yes, it is really tricky bastard :).

    If we let it go for a couple of hours, they will all have the same creation times at the end. Here is what will happen… We have 5 minutes period set up for all of them.

    We have three caches at the start.
    – after 5 minutes
    We have two caches.
    – after 5 minutes
    We have one cache.
    – after 5 minutes.
    We have all caches cleared.
    – after several hours.
    We will come and see the three pages, all the three caches will be regenerated at the visit time.

    The whole problem is that only one cache gets deleted at a time… and when the one cache is regenerated by preload or visit, it is the one that gets deleted the next time. If we would have 10 hours period, not the 5 minutes, it is much more likely that the cache will be regenerated and we will have only the one deleted all the time.

    It is hard to see if you look at the pages, easier if you look at the files via ftp. You can see which one disapears.

    Plugin Author Emre Vona

    (@emrevona)

    I suggest a simple method. You don’t need to do a lot of research.

    Thread Starter PumpaXXL

    (@pumpaxxl)

    Can we continue?

    Plugin Author Emre Vona

    (@emrevona)

    yes, sure. the cache creation time have changed as far as I see.

    Thread Starter PumpaXXL

    (@pumpaxxl)

    Yes, but the test could never show the problem. Let me explain once again. The core of the problem is this:

    __________________________________
    Every time when all of the three caches should be cleared only the first cache in the line (actually in the cron tasks list) is cleared.
    ___________________________________

    So if you give it a time and you don’t regenerate the caches, all of them gets cleared in first three periods. We have 5 minutes periods so all is cleared in 15 minutes.

    In real life, if you have 10 hours periods (for nonces) and the site has cache preload active and also visitors, only the first cache gets ever refreshed because it is regenerated again and again and therefore always the first in the row to be cleared. The other two are not cleared nor regenerated for days, sometimes for ever.

    • This reply was modified 3 years, 2 months ago by PumpaXXL.
    Plugin Author Emre Vona

    (@emrevona)

    no need to explain. just I want to see that the cache creation time does not change.

    Thread Starter PumpaXXL

    (@pumpaxxl)

    I see. So my work is done :).

    Let me also mention that something similar happens when you have one rule – for example: /page* and three pages: /page1/, /page2/, /page3/.

    Plugin Author Emre Vona

    (@emrevona)

    sure

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Timout Rules’ is closed to new replies.