We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d15a3c commit a8fa649Copy full SHA for a8fa649
src/ProcessedSite.php
@@ -13,9 +13,15 @@
13
14
class ProcessedSite {
15
16
+ private static string $processed_site_path;
17
+
18
public static function getPath(): string {
- return SiteInfo::getPath( 'uploads' ) .
- CoreOptions::getValue( 'processedSitePath' );
19
+ if ( ! isset( self::$processed_site_path ) ) {
20
+ self::$processed_site_path =
21
+ CoreOptions::getValue( 'processedSitePath' );
22
+ }
23
24
+ return SiteInfo::getPath( 'uploads' ) . self::$processed_site_path;
25
}
26
27
/**
0 commit comments