PluginProbe
WP Super Minify • Minify, Compress and Cache HTML, CSS & JavaScript / trunk
WP Super Minify • Minify, Compress and Cache HTML, CSS & JavaScript vtrunk
trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.4 1.5 1.5.1 1.6 2.0 2.0.1
wp-super-minify / includes / min / lib / Minify / Cache / Null.php

Null.php in WP Super Minify • Minify, Compress and Cache HTML, CSS & JavaScript trunk, at includes/min/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