PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 3.4.2
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v3.4.2
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / mrclay / minify / lib / Minify / Cache / Null.php

Null.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 3.4.2, at vendor/mrclay/minify/lib/Minify/Cache/Null.php

68 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Class Minify_Cache_Null
5 *
6 * If this is used, Minify will not use a cache and, for each 200 response, will
7 * need to recombine files, minify and encode the output.
8 *
9 * @package Minify
10 */
11 class Minify_Cache_Null implements Minify_CacheInterface
12 {
13 /**
14 * Write data to cache.
15 *
16 * @param string $id cache id (e.g. a filename)
17 * @param string $data
18 *
19 * @return bool success
20 */
21 public function store($id, $data)
22 {
23 }
24
25 /**
26 * Get the size of a cache entry
27 *
28 * @param string $id cache id (e.g. a filename)
29 *
30 * @return int size in bytes
31 */
32 public function getSize($id)
33 {
34 }
35
36 /**
37 * Does a valid cache entry exist?
38 *
39 * @param string $id cache id (e.g. a filename)
40 * @param int $srcMtime mtime of the original source file(s)
41 *
42 * @return bool exists
43 */
44 public function isValid($id, $srcMtime)
45 {
46 }
47
48 /**
49 * Send the cached content to output
50 *
51 * @param string $id cache id (e.g. a filename)
52 */
53 public function display($id)
54 {
55 }
56
57 /**
58 * Fetch the cached content
59 *
60 * @param string $id cache id (e.g. a filename)
61 *
62 * @return string
63 */
64 public function fetch($id)
65 {
66 }
67 }
68