-
-
Notifications
You must be signed in to change notification settings - Fork 2
Cache Methods
Jorge Reyes edited this page Jun 3, 2015
·
2 revisions
- getCacheSize() [numeric] Returns the number of feeds currently being cached, this does not count RAM cache
- isFeedCached(feedURL) [boolean] Checks to see if feedURL has a cached copy on the server
- isFeedExpired(feedURL) [boolean] Checks to see if the cache copy on the server belonging to feedURL has timed out
- flushCache() [void] Erases the entire feedReader cache, both RAM and files
- expireCachedFeed(feedURL) [void] Expire the cache belonging to feedURL
- getCachedFeed(feedURL) [any] Get the cache copy of feedURL and return it as a XML document object
- removeCachedFeed(feedURL) [boolean] Remove feedURL from the server cache
- setCachedFeed(feedURL, feedStruct) [void] Create a cache copy of feedStruct and use the url feedURL as the cache reference
<--- Example of flushing the cache --->
<cfscript>
if( getPlugin("feedReader").getCacheSize() gte 1 ) {
getPlugin("feedReader").flushCache();
}
</cfscript>
- Feed Reader * [RSS Syndication Format](https://github.com/ColdBox/cbox-feeds/wiki/RSS Syndication Format) * RDF Syndication Format * Atom Syndication Format * Supported Syntax and Formats
- Feed Generator
- Feed Generator Elements