Changeset 165987
- Timestamp:
- 10/22/2009 09:12:17 PM (16 years ago)
- Location:
- cache-translation-object/trunk
- Files:
-
- 3 edited
-
cache-translation-object-file.php (modified) (2 diffs)
-
cache-translation-object-shm.php (modified) (1 diff)
-
cache-translation-object.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cache-translation-object/trunk/cache-translation-object-file.php
r165890 r165987 72 72 73 73 closedir($handle); 74 75 if (!$count) 76 return false; 77 if ($count == 1) 78 return $size; 74 79 75 80 $msg = sprintf(__('%d bytes cached','cache-translation'), $size) … … 183 188 } else { 184 189 while (false !== ($file_name = readdir($handle))) { 190 if ($file_name == '.' || $file_name == '..') 191 continue; 192 185 193 $file = $path . '/' . $file_name; 186 194 $dir = is_dir($file) ? '[dir]' : ''; -
cache-translation-object/trunk/cache-translation-object-shm.php
r165890 r165987 148 148 * 149 149 * For the records array this is common. For ordinary objects it 150 * appears that it is hard to actually delete SHM object which means 151 * we can get here after a cach flush. 150 * appears that it is sometimes hard (especially in some versions of 151 * Windows) to actually delete SHM object which means we can get here 152 * after a cach flush. 152 153 */ 153 154 $shm_id = _cachet_shm_access($key, "w"); -
cache-translation-object/trunk/cache-translation-object.php
r165890 r165987 261 261 if (!is_string($call)) 262 262 return false; 263 if ($call != 'available' && !cachet_storage_available($type)) 263 if ($call != 'available' && $call != 'debuginfo' 264 && !cachet_storage_available($type)) 264 265 return false; 265 266 if (!is_null($locale) && !is_string($locale))
Note: See TracChangeset
for help on using the changeset viewer.