PluginProbe
JCH Optimize / trunk
JCH Optimize vtrunk
6.0.2 6.0.1 trunk 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.1.0 2.10.0 2.2.0 2.2.1 All 58 releases
jch-optimize / lib / src / Platform / CacheInterface.php

CacheInterface.php in JCH Optimize trunk, at lib/src/Platform/CacheInterface.php

45 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * JCH Optimize - Performs several front-end optimizations for fast downloads
5 *
6 * @package jchoptimize/core
7 * @author Samuel Marshall <samuel@jch-optimize.net>
8 * @copyright Copyright (c) 2022 Samuel Marshall / JCH Optimize
9 * @license GNU/GPLv3, or later. See LICENSE file
10 *
11 * If LICENSE file missing, see <http://www.gnu.org/licenses/>.
12 */
13
14 namespace JchOptimize\Core\Platform;
15
16 use JchOptimize\Core\Registry;
17
18 use function defined;
19
20 defined('_JCH_EXEC') or die('Restricted access');
21
22 interface CacheInterface
23 {
24 public function cleanThirdPartyPageCache(): void;
25
26 public function prepareDataFromCache(?array $data): ?array;
27
28 public function outputData(array $data): void;
29
30 public function isPageCacheEnabled(Registry $params, bool $nativeCache = false): bool;
31
32 /**
33 * @deprecated
34 */
35 public function getCacheNamespace(bool $pageCache = false): string;
36
37 public function getPageCacheNamespace(): string;
38
39 public function getGlobalCacheNamespace(): string;
40
41 public function getTaggableCacheNamespace(): string;
42
43 public function isCaptureCacheIncompatible(): bool;
44 }
45