PluginProbe
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution / 1.1.0
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution v1.1.0
2.0.1 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.5.0 1.6.0 1.6.1 1.7.0 1.7.1 1.8.0 1.9.0 2.0.0
solid-performance / src / Performance / Config / Strategies / Network_File.php

Network_File.php in Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution 1.1.0, at src/Performance/Config/Strategies/Network_File.php

43 lines 796 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The class for retrieving configuration values from a file.
4 *
5 * @since 0.1.0
6 *
7 * @package SolidWP\Performance
8 */
9
10 namespace SolidWP\Performance\Config\Strategies;
11
12 use SolidWP\Performance\Config\Contracts\Strategy;
13
14 /**
15 * Stores and retrieves configuration values from a file.
16 *
17 * @since 0.1.0
18 *
19 * @package SolidWP\Performance
20 */
21 class Network_File extends File implements Strategy {
22
23 /**
24 * The base path to the config directory.
25 *
26 * @since 0.1.0
27 *
28 * @var string
29 */
30 protected string $config_dir = WP_CONTENT_DIR . '/cache/solid-performance';
31
32 /**
33 * Gets the file path of the config file for a specific site.
34 *
35 * @since 0.1.0
36 *
37 * @return string
38 */
39 public function get_config_file_path(): string {
40 return $this->config_dir . '/config.php';
41 }
42 }
43