V
V
Vasily Petrov2017-12-23 11:13:48
Regular Expressions
Vasily Petrov, 2017-12-23 11:13:48

Why is a WP site giving fastcgi cache: MISS all the time?

Somehow I updated the site from two devices at once, and from some time the page was cached, although I set it to be cached from 1 time. But, now, this cannot be repeated ... Caching for authorized users is enabled.
Why is this happening? What could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Edward, 2019-10-14
@katopen

catopen

$text = 'https://www.labnol.org/internet/duplicate-gmail-draft-emails/29124/';

$text = preg_replace(['~^.+/(?=\w+-)~', '~/(\d+)\D*~'], ['', '-$1'], $text);

echo $text; // duplicate-gmail-draft-emails-29124

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question