Property | Type | Description | |
---|---|---|---|
$cache_extension | Cache file extension | ||
$cache_path | Path to cache folder (with trailing /) | ||
$cache_time | Length of time to cache a file (in seconds) |
Method | Description | |
---|---|---|
do_curl ( $url ) | Helper function for retrieving data from url | |
get_cache ( $label ) | ||
get_data ( $label, $url ) | This is just a functionality wrapper function | |
is_cached ( $label ) | ||
set_cache ( $label, $data ) |
Method | Description | |
---|---|---|
safe_filename ( $filename ) | Helper function to validate filenames |
public get_data ( $label, $url ) |