Browse Source

Let install/upgrade to handle the setting

Signed-off-by: Suki <[email protected]>
Suki 10 years ago
parent
commit
6396ebb02a
2 changed files with 0 additions and 21 deletions
  1. 0 17
      Sources/Subs.php
  2. 0 4
      index.php

+ 0 - 17
Sources/Subs.php

@@ -3967,23 +3967,6 @@ function smf_seed_generator()
 	updateSettings(array('rand_seed' => mt_rand()));
 }
 
-/**
- * Force browsers to grab a new copy of css / js files by changing ?bit
- */
-function reset_browser_cache($set = '')
-{
-	global $modSettings;
-
-	if(empty($modSettings['browser_cache']) || empty($set) || preg_match('~^[a-z0-9]{1,4}$~i', $set) === false)
-		$modSettings['browser_cache'] = '?alph21';
-
-	else
-		$modSettings['browser_cache'] = $set;
-
-	// Save it
-	updateSettings(array('browser_cache' => $modSettings['browser_cache']));
-}
-
 /**
  * Process functions of an integration hook.
  * calls all functions of the given hook.

+ 0 - 4
index.php

@@ -71,10 +71,6 @@ cleanRequest();
 if (empty($modSettings['rand_seed']) || mt_rand(1, 250) == 69)
 	smf_seed_generator();
 
-// Browser cache variable
-if(empty($modSettings['browser_cache']))
-	reset_browser_cache();
-
 // Before we get carried away, are we doing a scheduled task? If so save CPU cycles by jumping out!
 if (isset($_GET['scheduled']))
 {