Changeset 10730
- Timestamp:
- 08/07/08 08:55:37 (4 months ago)
- Files:
-
- doc/branches/1.1/book/12-Caching.txt (modified) (1 diff)
- doc/branches/1.2/book/12-Caching.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.1/book/12-Caching.txt
r9590 r10730 420 420 421 421 [php] 422 $cacheManager->remove('user/show?id=*'); // Remove for all user records for the current host423 $cacheManager->remove('user/show?id=*', 'life.askeet.com'); // Remove for all user records for the host life.askeet.com424 $cacheManager->remove('user/show?id=*', '*'); // Remove for all user records for every hosts422 $cacheManager->remove('user/show?id=*'); // Remove records for the current host and all users 423 $cacheManager->remove('user/show?id=*', 'life.askeet.com'); // Remove records for the host life.askeet.com and all users 424 $cacheManager->remove('user/show?id=*', '*'); // Remove records for every host and all users 425 425 426 426 The `remove()` method works in all the caching strategies that you can define in the `factories.yml` (not only `sfFileCache`, but also `sfAPCCache`, `sfEAcceleratorCache`, `sfMemcacheCache`, `sfSQLiteCache`, and `sfXCacheCache`). doc/branches/1.2/book/12-Caching.txt
r9590 r10730 420 420 421 421 [php] 422 $cacheManager->remove('user/show?id=*'); // Remove for all user records for the current host423 $cacheManager->remove('user/show?id=*', 'life.askeet.com'); // Remove for all user records for the host life.askeet.com424 $cacheManager->remove('user/show?id=*', '*'); // Remove for all user records for every hosts422 $cacheManager->remove('user/show?id=*'); // Remove records for the current host and all users 423 $cacheManager->remove('user/show?id=*', 'life.askeet.com'); // Remove records for the host life.askeet.com and all users 424 $cacheManager->remove('user/show?id=*', '*'); // Remove records for every host and all users 425 425 426 426 The `remove()` method works in all the caching strategies that you can define in the `factories.yml` (not only `sfFileCache`, but also `sfAPCCache`, `sfEAcceleratorCache`, `sfMemcacheCache`, `sfSQLiteCache`, and `sfXCacheCache`).