Changeset 3017
- Timestamp:
- 11/08/2005 10:15:06 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/cache.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cache.php
r3014 r3017 106 106 } 107 107 108 $cache_file = $this->cache_dir . $this->get_group_dir($group) . "/" . md5($id );108 $cache_file = $this->cache_dir . $this->get_group_dir($group) . "/" . md5($id . DB_PASSWORD); 109 109 if (!file_exists($cache_file)) { 110 110 $this->cache_misses += 1; … … 167 167 @ chmod($this->cache_dir . $make_dir, $perms); 168 168 } 169 170 if (!file_exists($this->cache_dir . $make_dir . "index.php")) { 171 touch($this->cache_dir . $make_dir . "index.php"); 172 } 169 173 } 170 174 … … 192 196 193 197 function save() { 194 //$this->stats();198 $this->stats(); 195 199 196 200 if (!$this->cache_enabled) … … 209 213 return; 210 214 @ chmod($this->cache_dir, $dir_perms); 215 } 216 217 if (!file_exists($this->cache_dir . "index.php")) { 218 touch($this->cache_dir . "index.php"); 211 219 } 212 220 … … 230 238 // TODO: If the id is no longer in the cache, it was deleted and 231 239 // the file should be removed. 232 $cache_file = $group_dir . md5($id );240 $cache_file = $group_dir . md5($id . DB_PASSWORD); 233 241 $temp_file = tempnam($group_dir, 'tmp'); 234 242 $serial = serialize($this->cache[$group][$id]);
Note: See TracChangeset
for help on using the changeset viewer.