]> git.mxchange.org Git - mailer.git/blobdiff - inc/classes/cachesystem.class.php
Flushing template cache is anoying while developing templates, now we can 'debug...
[mailer.git] / inc / classes / cachesystem.class.php
index 0a58a1dd31d788e88bd734045cd2b35db2b172c9..665d39f6ce2971f565e5c64a68a1f0e7d3a7492e 100644 (file)
@@ -163,6 +163,9 @@ class CacheSystem {
                                } elseif ($this->name == 'refdepths') {
                                        // Referal levels
                                        $GLOBALS['cache_array']['refdepths'][$k][$data['id']] = $v;
+                               } elseif ($this->name == 'refsystem') {
+                                       // Referal system
+                                       $GLOBALS['cache_array']['refsystem'][$k][$data['id']] = $v;
                                } elseif ($this->name == 'revision') {
                                        // Revision data
                                        $GLOBALS['cache_array']['revision'][$k] = $v;
@@ -175,7 +178,7 @@ class CacheSystem {
                                        }
                                } else {
                                        // Finialize the cache and close it
-                                       $this->finialize();
+                                       $this->finalize();
 
                                        // Remove cache
                                        $this->removeCacheFile(true);
@@ -279,7 +282,7 @@ class CacheSystem {
                                // Debug message if allowed
                                if (isDebugModeEnabled()) {
                                        // Debug message
-                                       debug_report_bug('Not removing cache ' . $this->name . ' in output_mode=' . getOutputMode());
+                                       logDebugMessage(__METHOD__, __LINE__, 'Not removing cache ' . $this->name . ' in output_mode=' . getOutputMode());
                                } // END - if
 
                                // Abort here
@@ -472,7 +475,7 @@ class CacheSystem {
                // String or non-string? ;-)
                if (is_string($value)) {
                        // String...
-                       $line = '$this->' . $prefix . "['".$this->name."']['" . $key . "']" . $extender . " = '" . smartAddSlashes($value) . "';\n";
+                       $line = '$this->' . $prefix . "['".$this->name."']['" . $key . "']" . $extender . " = '" . escapeQuotes($value) . "';\n";
                } elseif (is_null($value)) {
                        // Null
                        $line = '$this->' . $prefix . "['".$this->name."']['" . $key . "']" . $extender . " = null;\n";