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
EvolutionLEKoiSE
>=3.5All>=3.5>=3.5
Description:
This function deletes the indicated file from the cache folder indicated by "which".

Arguments:
  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:
<?php
require_once '/home/geckotribe/carp/carp.php';
CarpClearCacheFile(0,'filtered_data');
CarpClearCacheFile(2,'http://www.geckotribe.com/press/rss/pr.rss');
?>