set $seconds = 0 in the batcache class and could not find 'served from batcache in xxx seconds'
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
Start with the batcache class and the configuration shown in the issue, then reproduce the behavior with $seconds set to 0. Compare the generated, batcached, and served-from-batcache comments to determine whether the missing message is expected or indicates a bug; done means the behavior is explained and, if needed, covered by a regression test.
Written by the indexing model from the issue text.
Description
var $times = 2; // Only batcache a page after it is accessed this many times... (two or more)
var $seconds = 0; // ...in this many seconds (zero to ignore this and use batcache immediately)
Hi, after I set $seconds = 0; I alwasy get the following comments:
generated in 0.243 seconds
64311 bytes batcached for 7200 seconds
And Never see the ‘served from batcache’ comment. Is it right? Thanks.
generated 10 seconds ago
generated in 0.124 seconds
served from batcache in 0.001 seconds
expires in 7190 seconds
- Dominant language
- PHP
- Stars
- 295
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Automattic/batcache
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Automattic/batcache#106 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Automattic/batcache#102 · 2 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
Automattic/batcache#97 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 15/100
Automattic/batcache#86 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Automattic/batcache#84 · 1 comment ·
All issues in Automattic/batcache
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·