PluginProbe
GetResponse Forms by Optin Cat / 1.5.8
GetResponse Forms by Optin Cat v1.5.8
1.3.4 1.3.5 1.3.6 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.1 1.6.2 1.6.3 1.7.0 1.7.1 1.7.2 1.8.0 1.8.1 2.0.0 All 36 releases
getresponse / includes / classes / Mustache / Cache / NoopCache.php

NoopCache.php in GetResponse Forms by Optin Cat 1.5.8, at includes/classes/Mustache/Cache/NoopCache.php

50 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 * This file is part of Mustache.php.
5 *
6 * (c) 2010-2014 Justin Hileman
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 /**
13 * Mustache Cache in-memory implementation.
14 *
15 * The in-memory cache is used for uncached lambda section templates. It's also useful during development, but is not
16 * recommended for production use.
17 */
18 class Mustache_Cache_NoopCache extends Mustache_Cache_AbstractCache
19 {
20 /**
21 * Loads nothing. Move along.
22 *
23 * @param string $key
24 *
25 * @return boolean
26 */
27 public function load($key)
28 {
29 return false;
30 }
31
32 /**
33 * Loads the compiled Mustache Template class without caching.
34 *
35 * @param string $key
36 * @param string $value
37 *
38 * @return void
39 */
40 public function cache($key, $value)
41 {
42 $this->log(
43 Mustache_Logger::WARNING,
44 'Template cache disabled, evaluating "{className}" class at runtime',
45 array('className' => $key)
46 );
47 eval('?>' . $value);
48 }
49 }
50