CaRP: Caching RSS Parser - Documentation
CarpClearCacheFile( which, filename );
Delete a file from one of the cache directories
| GPL |
Koi |
Evolution |
| >=3.5 |
>=3.5 |
>=3.5 |
Description:
This function deletes the indicated file from the cache folder indicated by "which".
Arguments:
- which: indicates by number which cache folder to delete the file from.
Valid values are:
- 0: CarpAggregatePath--the aggregation cache
- 1: CarpCachePath--where formatted output is stored by CarpAggregate, CarpFilter, CarpCacheFilter, CarpShow and CarpCacheShow
- 2: CarpAutoCachePath--where raw newsfeeds are stored by CarpCacheFilter and CarpCacheShow
- filename: The name of the file to delete.
To delete a file from the auto cache directory, indicate the URL of the newsfeed instead of the filename.
Return value: none
Usage Example:
<?php
require_once '/home/geckotribe/carp/carp.php';
CarpClearCacheFile(0,'filtered_data');
CarpClearCacheFile(2,'http://www.geckotribe.com/press/rss/pr.rss');
?>