diff www/loc.php @ 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 e82ba6f55708
line wrap: on
line diff
--- 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);
   }
 }