diff --git a/includes/class-nanga-third-party.php b/includes/class-nanga-third-party.php index 37f9d82..1e2d63e 100644 --- a/includes/class-nanga-third-party.php +++ b/includes/class-nanga-third-party.php @@ -208,6 +208,9 @@ public function features_timber() { add_filter( 'timber/cache/location', function () { return WP_CONTENT_DIR . '/cache/timber'; } ); + if ( defined( 'WP_ENV' ) && 'production' === WP_ENV ) { + Timber::$cache = true; + } } } }