Browse Source

Show always the clean cache button on the caching page

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
35739b2f30
1 changed files with 3 additions and 8 deletions
  1. 3 8
      Sources/ManageServer.php

+ 3 - 8
Sources/ManageServer.php

@@ -390,14 +390,9 @@ function ModifyCacheSettings($return_config = false)
 		redirectexit('action=admin;area=serversettings;sa=cache;' . $context['session_var'] . '=' . $context['session_id']);
 	}
 
-	// if its off, allow them to clear it as well
-	// @todo why only when its off ?
-	if (empty($cache_enable))
-	{
-		loadLanguage('ManageMaintenance');
-		createToken('admin-maint');
-		$context['template_layers'][] = 'clean_cache_button';
-	}
+	loadLanguage('ManageMaintenance');
+	createToken('admin-maint');
+	$context['template_layers'][] = 'clean_cache_button';
 
 	$context['post_url'] = $scripturl . '?action=admin;area=serversettings;sa=cache;save';
 	$context['settings_title'] = $txt['caching_settings'];