yes, the rules covers both the pages.
Start With: pre-event-1
I have long term problems with the cache timeout reliability. Currently, I have 3 pages:
/pre-event-1
/pre-event-1a
/pre-event-2
the rule is:
/pre-event(.*), delete twice an Hour
Whenever I run the wp_fastest_cache_0 hook [
“{\”prefix\”:\”startwith\”,\”content\”:\”pre-event\”}”
]
it deletes only one of the three. I have to run it three times to delete all of them.
Can you please comment on this?
Thank you.
-
This reply was modified 5 years ago by
PumpaXXL.
-
This reply was modified 5 years ago by
PumpaXXL.
Also, when I create “starts with” timeout records, each one for one page, it again takes three cron runs to delete all of the tree pages. If I create “exact match” records for each of them, all of them are deleted at once. This is the only option that seems to work.
-
This reply was modified 5 years ago by
PumpaXXL.
I am so sorry. I made a mistake. the rule does not clear the cache of 3 pages.
if pages are as below, they are cleared.
/pre-event/1
/pre-event/1a
/pre-event/2
So the rule clears just one page at a time? That would actually explain what is happening on our sites. The second page cache is cleared only if the first page cache is empty. But often the first page cache is renewed by a visit so the second page is not cleared. This brings the randomness that is happening.
So to summarize – the “starts with” rules deletes always only one page cache at a time and it is the first non epmty cache of a page in the matching list of pages”.
If this is so, I don’t understand what is ti good for.
sorry again. the following rule clears the following 3 pages.
“{\”prefix\”:\”startwith\”,\”content\”:\”pre-event\”}”
/pre-event/1
/pre-event/1a
/pre-event/2
https://plugins.trac.wordpress.org/browser/wp-fastest-cache/trunk/wpFastestCache.php#L1504
Well, with this statement “{\”prefix\”:\”startwith\”,\”content\”:\”pre-event\”}” we are back at the beginning of my question. It should clear cache of all the 3 pages but in reality, it clears only one with each run. That is why I started this ticket. This has been happening for some time on several webs…
Can you please look at it?
-
This reply was modified 5 years ago by
PumpaXXL.
the following code gets the folders starting with “pre-even”. I cannot do anything about it.
$files = glob($this->getWpContentDir(“/cache/all/”).$rule->content.”*”);
foreach ((array)$files as $file) {
Did you test the timeouts? It is like 5 minutes work. If I am right than it is serious problem. For example we lost quite some money on campaigns that ended on non-working registration forms (noonce problem).
it may be related to WP_CRON system. I recommend you to set up a cronjob as below.
https://www.wpfastestcache.com/features/clear-cache-via-url/
Thanks but I just wanted to point out an error. I don’t think it is up to me to fix it and this is even not a solution anyway.
I cannot fix it. this is the best way. trust me.