Changeset 268
- Timestamp:
- 08/29/06 15:13:22 (4 years ago)
- Files:
-
- eaccelerator/branches/0.9.5/ChangeLog (modified) (1 diff)
- eaccelerator/branches/0.9.5/ea_info.c (modified) (4 diffs)
- eaccelerator/branches/0.9.5/eaccelerator.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/branches/0.9.5/ChangeLog
r266 r268 1 2006-08-29 Hans Rakers <hans at parse dot nl> 2 3 * Skip disk cache creation and clean/clear actions when operating in 4 shm_only mode. This fixes ticket #165 5 1 6 2006-08-23 Hans Rakers <hans at parse dot nl> 2 7 eaccelerator/branches/0.9.5/ea_info.c
r264 r268 46 46 extern eaccelerator_mm *eaccelerator_mm_instance; 47 47 48 /* for checking if shm_only storage */ 49 extern zend_bool eaccelerator_scripts_shm_only; 50 48 51 /* {{{ isAdminAllowed(): check if the admin functions are allowed for the calling script */ 49 52 static int isAdminAllowed(TSRMLS_D) { … … 283 286 } 284 287 285 if (!isAdminAllowed(TSRMLS_C)) {286 zend_error(E_WARNING, NOT_ADMIN_WARNING);287 RETURN_NULL();288 }288 if (!isAdminAllowed(TSRMLS_C)) { 289 zend_error(E_WARNING, NOT_ADMIN_WARNING); 290 RETURN_NULL(); 291 } 289 292 290 293 t = time (0); … … 294 297 295 298 /* Remove expired keys (session data, content) from disk cache */ 296 clean_filecache(EAG(cache_dir), t); 299 if(!eaccelerator_scripts_shm_only) { 300 clean_filecache(EAG(cache_dir), t); 301 } 297 302 298 303 /* Remove expired keys (session data, content) from shared memory */ … … 348 353 EACCELERATOR_PROTECT (); 349 354 350 clear_filecache(EAG(cache_dir)); 351 355 if(!eaccelerator_scripts_shm_only) { 356 clear_filecache(EAG(cache_dir)); 357 } 358 352 359 RETURN_NULL(); 353 360 } eaccelerator/branches/0.9.5/eaccelerator.c
r237 r268 2016 2016 ea_debug_init(TSRMLS_C); 2017 2017 2018 snprintf(fullpath, MAXPATHLEN-1, "%s/", EAG(cache_dir)); 2019 make_hash_dirs(fullpath, EACCELERATOR_HASH_LEVEL); 2018 if(!eaccelerator_scripts_shm_only) { 2019 snprintf(fullpath, MAXPATHLEN-1, "%s/", EAG(cache_dir)); 2020 make_hash_dirs(fullpath, EACCELERATOR_HASH_LEVEL); 2021 } 2020 2022 2021 2023 if (type == MODULE_PERSISTENT &&