string allocate_cache(
string
$prefix, [string
$uid = false]
)
|
|
Allocate a new file in cache
Allocate a new file in cache
Parameters:
|
string |
$prefix: |
A group name that will be prefixed on the cache file |
|
string |
$uid: |
[Optiona] A unique identifier for the file being optimized. If not specified, a new will be generated |
API Tags:
| Return: | Returns the new cache file path |
void is_valid(
$categories,
$string
)
|
|
Parameters:
API Tags:
Redefined in descendants as:
void optimize_file(
$file,
$options
)
|
|
Parameters:
API Tags:
Redefined in descendants as:
void optimize_string(
$string,
$options
)
|
|
Parameters:
API Tags:
Redefined in descendants as:
bool should_update(
string
$file, [mixed
$check = false]
)
|
|
Check whether we should update or not the cached file
Check whether we should update or not the cached file
Parameters:
|
string |
$file: |
The path to the cache file |
|
mixed |
$check: |
If this variable is FALSE, no previously existing file check will be performed; it will be replaced immediately. If this variable is an MD5 string, the file contents will be matched with the string provided. If this variable is a timestamp, the file's last modification date will be required to be newer than the provided. |
API Tags:
| Return: | Returns TRUE if FALSE, depedning on when you should or should not update this cache file |