#!/usr/bin/env php
<?php
/*
- * Laconica - a distributed open-source microblogging tool
- * Copyright (C) 2008, 2009, Control Yourself, Inc.
+ * StatusNet - the distributed open-source microblogging tool
+ * Copyright (C) 2008, 2009, StatusNet, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
$ids = file($id_file);
-$memc = common_memcache();
+$memc = Cache::instance();
foreach ($ids as $id) {
$user->decache();
- $memc->delete(common_cache_key('user:notices_with_friends:'. $user->id));
- $memc->delete(common_cache_key('user:notices_with_friends:'. $user->id . ';last'));
+ $memc->delete(Cache::key('user:notices_with_friends:'. $user->id));
+ $memc->delete(Cache::key('user:notices_with_friends:'. $user->id . ';last'));
}