14 lines
241 B
PHP
14 lines
241 B
PHP
<?php function get_cache_id($prefix) {
|
|
$lastId = 0;
|
|
|
|
if(Cache::has($prefix)) {
|
|
$lastId = Cache::get($prefix);
|
|
}
|
|
|
|
return $lastId;
|
|
}
|
|
|
|
function set_cache_id($prefix, $lastId) {
|
|
Cache::put($prefix, $lastId);
|
|
}
|
|
?>
|