Skip to content

Commit facd595

Browse files
authored
Boost: Fix advnaced-cache.php (#35722)
* Fix advanced-cache setup * changelog
1 parent 993c355 commit facd595

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

projects/plugins/boost/app/modules/cache/Page_Cache_Setup.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ private static function create_advanced_cache() {
6969
}
7070
}
7171

72-
$boost_cache_filename = WP_CONTENT_DIR . '/plugins/' . basename( dirname( plugin_dir_path( __FILE__ ), 3 ) ) . '/app/modules/cache/Boost_Cache.php';
72+
$boost_cache_filename = WP_CONTENT_DIR . '/plugins/' . basename( dirname( plugin_dir_path( __FILE__ ), 3 ) ) . '/app/modules/cache/pre-wordpress/Boost_Cache.php';
7373
$contents = '<?php
7474
// ' . Page_Cache::ADVANCED_CACHE_SIGNATURE . ' - ' . Page_Cache::ADVANCED_CACHE_VERSION . '
7575
if ( ! file_exists( \'' . $boost_cache_filename . '\' ) ) {
7676
return;
7777
}
7878
require_once( \'' . $boost_cache_filename . '\');
7979
80-
( new Automattic\Jetpack_Boost\Modules\Page_Cache\Boost_Cache() )->serve();
80+
( new Automattic\Jetpack_Boost\Modules\Page_Cache\Pre_WordPress\Boost_Cache() )->serve();
8181
';
8282

8383
$write_advanced_cache = Boost_Cache_Utils::write_to_file( $advanced_cache_filename, $contents );
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Significance: patch
2+
Type: fixed
3+
Comment: Fixed path and namespace messed up in a recent PR
4+
5+

0 commit comments

Comments
 (0)