]> git.mxchange.org Git - mailer.git/blobdiff - inc/classes/cachesystem.class.php
Right place...
[mailer.git] / inc / classes / cachesystem.class.php
index e19c9e8f7809b23227a70d7e60cc5602e3f50b36..78b72f81017dc84af55ad833c3fd5732a747fc0c 100644 (file)
@@ -65,26 +65,14 @@ class CacheSystem {
 
                // Check if path exists
                if (isDirectory(getConfig('CACHE_PATH'))) {
-                       // Make FQFN for dummy file
-                       $FQFN = getConfig('CACHE_PATH') . 'dummy.tmp';
-
-                       // Check if we can create a file inside the path
-                       touch($FQFN, 'w');
-
-                       // Is the file there?
-                       if (isFileReadable($FQFN)) {
-                               // Yes, we can do. So let's remove it
-                               removeFile($FQFN);
-
-                               // Is there a .htaccess file?
-                               if (isFileReadable(getConfig('CACHE_PATH') . '.htaccess')) {
-                                       // All done!
-                                       $this->ret = $this->statusDone;
-                               } else {
-                                       // Stop! Set a .htaccess file first
-                                       $this->ret = 'htaccess';
-                               }
-                       } // END - if
+                       // Is there a .htaccess file?
+                       if (isFileReadable(getConfig('CACHE_PATH') . '.htaccess')) {
+                               // All done!
+                               $this->ret = $this->statusDone;
+                       } else {
+                               // Stop! Set a .htaccess file first
+                               $this->ret = 'htaccess';
+                       }
                } // END - if
        }
 
@@ -175,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;
@@ -187,7 +178,7 @@ class CacheSystem {
                                        }
                                } else {
                                        // Finialize the cache and close it
-                                       $this->finialize();
+                                       $this->finalize();
 
                                        // Remove cache
                                        $this->removeCacheFile(true);