CaRP Evolution Documentation
CaRP Evolution Documentation
twitter youtube linkedin google-plus
CaRP Evolution Box
Web This Site

CaRP: Caching RSS Parser - Documentation

CaRP Interactive FAQ
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates

CarpClearCacheFile( which, filename );

Delete a file from one of the cache directories
This function deletes the indicated file from the cache folder indicated by "which".

  1. 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
  2. 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:
require_once '/home/geckotribe/carp/carp.php';