changeset 2033:57ecb49d7b4a

Update the apc functions to use apcu_ prefix.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 26 Jan 2019 01:31:25 +0200
parents d9c15f7ae4c4
children d8cbaa058754
files www/info.php www/loc.php www/simple.php www/ss.php
diffstat 4 files changed, 16 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/www/info.php	Sat Jan 26 01:27:14 2019 +0200
+++ b/www/info.php	Sat Jan 26 01:31:25 2019 +0200
@@ -33,17 +33,17 @@
   " </table>\n".
   "</div>\n";
 
-$locTable = apc_fetch("info_locTable");
+$locTable = apcu_fetch("info_locTable");
 if (empty($locTable))
 {
   $locTable = mpReadLocationFiles();
-  apc_store("info_locTable", $locTable, 3600);
+  apcu_store("info_locTable", $locTable, 3600);
 }
-$wizTable = apc_fetch("wizTable");
+$wizTable = apcu_fetch("wizTable");
 if (empty($wizTable))
 {
   $wizTable = mpReadWizInfoFiles();
-  apc_store("wizTable", $wizTable, 3600);
+  apcu_store("wizTable", $wizTable, 3600);
 }
 
 
--- a/www/loc.php	Sat Jan 26 01:27:14 2019 +0200
+++ b/www/loc.php	Sat Jan 26 01:31:25 2019 +0200
@@ -94,11 +94,11 @@
     $coderName = $matches[1];
     $coderName = strtoupper(substr($coderName, 0, 1)).strtolower(substr($coderName, 1));
 
-    $wizTable = apc_fetch("wizTable");
+    $wizTable = apcu_fetch("wizTable");
     if (empty($wizTable))
     {
       $wizTable = mpReadWizInfoFiles();
-      apc_store("wizTable", $wizTable, 3600);
+      apcu_store("wizTable", $wizTable, 3600);
     }
   }
   else
@@ -114,12 +114,12 @@
   $setName = strtolower(trim(basename($_GET["n"])));
   if (file_exists($setName.".loc"))
   {
-    $locTable = apc_fetch("loc_".$setName);
+    $locTable = apcu_fetch("loc_".$setName);
     if (empty($locTable))
     {
       $locTable = [];
       mpParseLocFile($setName, $locTable, $applyFilter, $applyFilter ? $locationTypes[$filterID][LTI_REGEXP] : "");
-      apc_store("loc_".$setName, $locTable, 3600);
+      apcu_store("loc_".$setName, $locTable, 3600);
     }
   }
   else
@@ -130,11 +130,11 @@
 }
 else
 {
-  $locTable = apc_fetch("loc_locTable");
+  $locTable = apcu_fetch("loc_locTable");
   if (empty($locTable))
   {
     $locTable = mpReadLocationFiles($applyFilter, $applyFilter ? $locationTypes[$filterID][LTI_REGEXP] : "");
-    apc_store("loc_locTable", $locTable, 3600);
+    apcu_store("loc_locTable", $locTable, 3600);
   }
 }
 
--- a/www/simple.php	Sat Jan 26 01:27:14 2019 +0200
+++ b/www/simple.php	Sat Jan 26 01:31:25 2019 +0200
@@ -3,11 +3,11 @@
 require "world.inc.php";
 require "common.inc.php";
 
-$locTable = apc_fetch("loc_locTable");
+$locTable = apcu_fetch("loc_locTable");
 if (empty($locTable))
 {
   $locTable = mpReadLocationFiles(TRUE, "[^C]*");
-  apc_store("loc_locTable", $locTable, 3600);
+  apcu_store("loc_locTable", $locTable, 3600);
 }
 
 
--- a/www/ss.php	Sat Jan 26 01:27:14 2019 +0200
+++ b/www/ss.php	Sat Jan 26 01:31:25 2019 +0200
@@ -3,16 +3,16 @@
 require "world.inc.php";
 require "common.inc.php";
 
-$locTable = apc_fetch("ss_locTable");
-$locPTable = apc_fetch("ss_locPTable");
+$locTable = apcu_fetch("ss_locTable");
+$locPTable = apcu_fetch("ss_locPTable");
 if (empty($locTable) || empty($locPTable))
 {
   $locTable = mpReadLocationFiles(TRUE, "C");
   mpParseLocFile("limbo", $locTable, TRUE, "C");
   $locPTable = mpReadLocationFiles(TRUE, "P");
 
-  apc_store("ss_locTable", $locTable, 3600);
-  apc_store("ss_locPTable", $locPTable, 3600);
+  apcu_store("ss_locTable", $locTable, 3600);
+  apcu_store("ss_locPTable", $locPTable, 3600);
 }
 
 // Page start