From 555688e880b1bb50c13286b7d373ffd683847234 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Fri, 7 Oct 2011 16:51:19 +1100 Subject: memcached, APC, xcache --- mod.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mod.php') diff --git a/mod.php b/mod.php index 792efbb0..4dee0a23 100644 --- a/mod.php +++ b/mod.php @@ -151,7 +151,7 @@ if(hasPermission($config['mod']['rebuild'])) { $fieldset['Administration'] .= '
  • Rebuild static files
  • '; } - if(hasPermission($config['mod']['rebuild']) && $config['memcached']['enabled']) { + if(hasPermission($config['mod']['rebuild']) && $config['cache']['enabled']) { $fieldset['Administration'] .= '
  • Clear cache
  • '; } if(hasPermission($config['mod']['show_config'])) { @@ -1588,13 +1588,13 @@ ); } elseif(preg_match('/^\/flush$/', $query)) { if(!hasPermission($config['mod']['rebuild'])) error($config['error']['noaccess']); - if(!$config['memcached']['enabled']) error('Memcached is not enabled.'); + if(!$config['cache']['enabled']) error('Cache is not enabled.'); - if($memcached->flush()) { + if(cache::flush()) { $body = 'Successfully invalidated all items in the cache.'; modLog('Cleared cache'); } else { - $body = $memcached->getResultMessage(); + $body = 'An error occured while trying to flush cache.'; } echo Element('page.html', Array( -- cgit v1.3