Configuration file not being cached in cache/config.php

I am having an issue where Sage isn’t caching my configuration files in cache/config.php. This is strange to me, because both providers.php and services.php are cached. So: with every page reload the configuration files are reloaded here, even though I am expecting to find them here.

I am thinking it may have something to do with my environment. I don’t have a .env file set, and I’m working locally. I am using the 10.0.0-beta version of Sage.

Thoughts?

Stacktrace of query (via Query Monitor plugin):

WP_Post::get_instance
get_post
get_the_title
require('/themes/sage/config/breadcrumb.php')
Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFiles
Roots\Acorn\Bootstrap\LoadConfiguration->bootstrap
Illuminate\Foundation\Application->bootstrapWith
Roots\Acorn\Bootloader->app
Roots\Acorn\Bootloader->__invoke
WP_Hook->apply_filters
WP_Hook->do_action
do_action('after_setup_theme')
require_once('wp-settings.php')
require_once('wp-config.php')
require_once('wp-load.php')
require('wp-blog-header.php')

Have you already run wp acorn optimize?

I don’t believe there are public docs for any of the acorn commands yet, so it’s worth running wp acorn to learn more about what’s available.

2 Likes

This topic was automatically closed after 42 days. New replies are no longer allowed.