]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/showcache.php
Make attachment fit better in notice: drop text and link
[quix0rs-gnu-social.git] / scripts / showcache.php
old mode 100644 (file)
new mode 100755 (executable)
index 93b57a4..9911054
@@ -18,7 +18,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
+define('INSTALLDIR', dirname(__DIR__));
+define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public');
 
 $shortoptions = "t:l:v:k:";
 
@@ -38,7 +39,7 @@ require_once INSTALLDIR.'/scripts/commandline.inc';
 $karg = get_option_value('k');
 
 if (!empty($karg)) {
-    $k = common_cache_key($karg);
+    $k = Cache::key($karg);
 } else {
     $table = get_option_value('t');
     if (empty($table)) {
@@ -55,7 +56,7 @@ if (!empty($karg)) {
 
 print "Checking key '$k'...\n";
 
-$c = common_memcache();
+$c = Cache::instance();
 
 if (empty($c)) {
     die("Can't initialize cache object!\n");