missing object_cache result in some warnings
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- php, wordpress
- Domain
- backend, performance
Research direction
Start in advanced-cache.php around line 355, where object-cache.php is included, and review how the missing file affects the rest of the script. Confirm the expected behavior when object-cache.php is absent and whether the warning should be avoided; done should address the reported warnings without breaking Batcache activation.
Written by the indexing model from the issue text.
Description
Hi, in my vip dev environment I got these after activating batcache following the istructions:
Warning: include_once(/srv/wp-content/object-cache.php): failed to open stream: No such file or directory in /srv/wp-content/mu-plugins/batcache/advanced-cache.php on line 355
Warning: include_once(): Failed opening '/srv/wp-content/object-cache.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /srv/wp-content/mu-plugins/batcache/advanced-cache.php on line 355
reading advanched-cache.php seems like the absence of object-cache.php triggers a return at the half of the file...
why don't check if file exists before including, to avoid warning?
and why object cache is required for a large portion of the script, but it's not included in the plugin itself?
where can i find and download a stable version of it?
- 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 ·