Skip to content

Commit

Permalink
Always enable Timber cache in Production
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallinanga committed Nov 28, 2015
1 parent c254033 commit a744f5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/class-nanga-third-party.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
}

0 comments on commit a744f5a

Please sign in to comment.