Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/buildmaster
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-08 13:51:04 +0100
committerErich Eckner <git@eckner.net>2019-02-08 13:51:04 +0100
commit1da6ac89b5f863525d8bafd54f7123ff719a8149 (patch)
tree4bc52c8da6c3fc86e1ffbf6534d08e2e222f0d8c /buildmaster
parent5b9eb821e590859c3baaac9d08b07019f383eed2 (diff)
close memcache connection if no longer needed
Diffstat (limited to 'buildmaster')
-rw-r--r--buildmaster/deletion-links.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/buildmaster/deletion-links.php b/buildmaster/deletion-links.php
index 066bf8d..9f55c89 100644
--- a/buildmaster/deletion-links.php
+++ b/buildmaster/deletion-links.php
@@ -16,8 +16,8 @@ else
$filter = "";
$memcache = new Memcache;
-$memcache->connect('localhost', 11211) or die ('Memcached Connection Error');
-$available_upstream_packages = $memcache->get('available_upstream_packages');
+$memcache -> connect('localhost', 11211) or die ('Memcached Connection Error');
+$available_upstream_packages = $memcache -> get('available_upstream_packages');
if ($available_upstream_packages === false) {
$available_upstream_packages = explode(
"\n",
@@ -27,8 +27,9 @@ if ($available_upstream_packages === false) {
"| sort -u"
)
);
- $memcache->set('available_upstream_packages',$available_upstream_packages,0,1800);
+ $memcache -> set('available_upstream_packages',$available_upstream_packages,0,1800);
}
+$memcache -> close();
mysql_run_query(
"CREATE TEMPORARY TABLE `available` (" .