aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/cache/driver/null.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-07-14 16:51:46 -0400
committerMarc Alexander <admin@m-a-styles.de>2013-07-14 16:51:46 -0400
commitbc6122b64ffb5c13c26991f78346fdc7dee6f9f0 (patch)
tree31673423cd6ab751bc8b102c97e89a182a94e219 /phpBB/phpbb/cache/driver/null.php
parent79dd44061bbfeab64dd2ff7b40541612c219c33c (diff)
parent1891e24ea6f5b8d5944535479182e70119b2979f (diff)
downloadforums-bc6122b64ffb5c13c26991f78346fdc7dee6f9f0.tar
forums-bc6122b64ffb5c13c26991f78346fdc7dee6f9f0.tar.gz
forums-bc6122b64ffb5c13c26991f78346fdc7dee6f9f0.tar.bz2
forums-bc6122b64ffb5c13c26991f78346fdc7dee6f9f0.tar.xz
forums-bc6122b64ffb5c13c26991f78346fdc7dee6f9f0.zip
Merge branch 'develop' of https://github.com/phpbb/phpbb3 into ticket/11531
Diffstat (limited to 'phpBB/phpbb/cache/driver/null.php')
-rw-r--r--phpBB/phpbb/cache/driver/null.php154
1 files changed, 154 insertions, 0 deletions
diff --git a/phpBB/phpbb/cache/driver/null.php b/phpBB/phpbb/cache/driver/null.php
new file mode 100644
index 0000000000..2fadc27ba3
--- /dev/null
+++ b/phpBB/phpbb/cache/driver/null.php
@@ -0,0 +1,154 @@
+<?php
+/**
+*
+* @package acm
+* @copyright (c) 2005, 2009 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+/**
+* @ignore
+*/
+if (!defined('IN_PHPBB'))
+{
+ exit;
+}
+
+/**
+* ACM Null Caching
+* @package acm
+*/
+class phpbb_cache_driver_null extends phpbb_cache_driver_base
+{
+ /**
+ * Set cache path
+ */
+ function __construct()
+ {
+ }
+
+ /**
+ * Load global cache
+ */
+ function load()
+ {
+ return true;
+ }
+
+ /**
+ * Unload cache object
+ */
+ function unload()
+ {
+ }
+
+ /**
+ * Save modified objects
+ */
+ function save()
+ {
+ }
+
+ /**
+ * Tidy cache
+ */
+ function tidy()
+ {
+ // This cache always has a tidy room.
+ set_config('cache_last_gc', time(), true);
+ }
+
+ /**
+ * Get saved cache object
+ */
+ function get($var_name)
+ {
+ return false;
+ }
+
+ /**
+ * Put data into cache
+ */
+ function put($var_name, $var, $ttl = 0)
+ {
+ }
+
+ /**
+ * Purge cache data
+ */
+ function purge()
+ {
+ }
+
+ /**
+ * Destroy cache data
+ */
+ function destroy($var_name, $table = '')
+ {
+ }
+
+ /**
+ * Check if a given cache entry exist
+ */
+ function _exists($var_name)
+ {
+ return false;
+ }
+
+ /**
+ * Load cached sql query
+ */
+ function sql_load($query)
+ {
+ return false;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ function sql_save(phpbb_db_driver $db, $query, $query_result, $ttl)
+ {
+ return $query_result;
+ }
+
+ /**
+ * Ceck if a given sql query exist in cache
+ */
+ function sql_exists($query_id)
+ {
+ return false;
+ }
+
+ /**
+ * Fetch row from cache (database)
+ */
+ function sql_fetchrow($query_id)
+ {
+ return false;
+ }
+
+ /**
+ * Fetch a field from the current row of a cached database result (database)
+ */
+ function sql_fetchfield($query_id, $field)
+ {
+ return false;
+ }
+
+ /**
+ * Seek a specific row in an a cached database result (database)
+ */
+ function sql_rowseek($rownum, $query_id)
+ {
+ return false;
+ }
+
+ /**
+ * Free memory used for a cached database result (database)
+ */
+ function sql_freeresult($query_id)
+ {
+ return false;
+ }
+}