Title: Cache Timeout
Last modified: March 12, 2021

---

# Cache Timeout

 *  [PumpaXXL](https://wordpress.org/support/users/pumpaxxl/)
 * (@pumpaxxl)
 * [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/)
 * Hi, quick question please to better understand the timout rules. If I have two
   pages:
 * …/pre-event-1a/ and …/pre-event-1/ and if I set the following timeout rule:
    
   Start With: pre-event-1 (…/pre-event-1(.*)
 * Does this rule cover both the pages or just the …/pre-event-1/ one?
 * Thanks!

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

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/#post-14175161)
 * yes, the rules covers both the pages.
 * > Start With: pre-event-1
 *  Thread Starter [PumpaXXL](https://wordpress.org/support/users/pumpaxxl/)
 * (@pumpaxxl)
 * [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/#post-14176189)
 * 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](https://wordpress.org/support/users/pumpaxxl/).
    -  This reply was modified 5 years ago by [PumpaXXL](https://wordpress.org/support/users/pumpaxxl/).
 *  Thread Starter [PumpaXXL](https://wordpress.org/support/users/pumpaxxl/)
 * (@pumpaxxl)
 * [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/#post-14176270)
 * 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](https://wordpress.org/support/users/pumpaxxl/).
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/#post-14177596)
 * 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
 *  Thread Starter [PumpaXXL](https://wordpress.org/support/users/pumpaxxl/)
 * (@pumpaxxl)
 * [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/#post-14177958)
 * 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.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/#post-14178034)
 * 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](https://plugins.trac.wordpress.org/browser/wp-fastest-cache/trunk/wpFastestCache.php#L1504)
 *  Thread Starter [PumpaXXL](https://wordpress.org/support/users/pumpaxxl/)
 * (@pumpaxxl)
 * [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/#post-14178878)
 * 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](https://wordpress.org/support/users/pumpaxxl/).
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/#post-14180249)
 * 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) {
 *  Thread Starter [PumpaXXL](https://wordpress.org/support/users/pumpaxxl/)
 * (@pumpaxxl)
 * [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/#post-14180417)
 * 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).
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/#post-14180459)
 * 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/](https://www.wpfastestcache.com/features/clear-cache-via-url/)
 *  Thread Starter [PumpaXXL](https://wordpress.org/support/users/pumpaxxl/)
 * (@pumpaxxl)
 * [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/#post-14180794)
 * 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.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/#post-14180805)
 * I cannot fix it. this is the best way. trust me.

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

The topic ‘Cache Timeout’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

## Tags

 * [Cache timeout](https://wordpress.org/support/topic-tag/cache-timeout/)

 * 12 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/cache-timeout-10/#post-14180805)
 * Status: not resolved