meta-wp-cache and wp-cache files updates
-
Hey there,
First of all thanks for the great plugin.
Today I spent almost 5 hours trying to understand cache files generation logic, and even googling I did not found it.
I use cache warming ssh script like this:
# cleaning first
/usr/local/bin/wp super-cache flush;
/usr/local/bin/wp cache flush;
#
wget –content-disposition –reject-regex “wp-json|wp-includes|login|register” –reject=${WARMLY_REJECT} –spider -o wget-${DOMAIN}.log -e robots=off -r -l 5 -p -S –header=”X-Bypass-Cache: 1″ ${DOMAIN}
#
#and once again with mobile useragent
wget –content-disposition –reject-regex “wp-json|wp-includes|login|register” –reject=${WARMLY_REJECT} –spider -o wget-${DOMAIN}-mob.log -e robots=off -r -l 5 -p -S –header=”X-Bypass-Cache: 1″ ${DOMAIN} –user-agent=’Mozilla/5.0 (iPhone; CPU iPhone OS 8_0_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A366 Safari/600.1.4′The problem I found, that cache files
index-https-mobile.html
index-https-mobile.html.gz
index-https.html
index-https.html.gz
were created successfully, but
meta-wp-cache-xxxxx
wp-cache-xxxxxx
files were not created.Opening pages via browser using the inspector I found significant delay of opening the page first time, and second time its going faster. Analyzing this behavior I saw that these
meta-wp-cache-xxxxx
wp-cache-xxxxxx
were created.
However the lifetime of these two files are much shorter than planned cache lifetime, and like in ~40-60 minutes these two regenerates again and again.The strange thing is that on one another web I manage, there are no these two files at all (but I do not use extra mobile cache version on it).
Can you suggests what should I do to set up the cache correctly?
PS:
– I use all the webs under Cloudflare;
– Redis object cache is working as well;
– both websites have mostly static content, so cache warming script I start once in 6 hours;
- The topic ‘meta-wp-cache and wp-cache files updates’ is closed to new replies.