- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
function getFlatsParametrsById(int $id) {
//...
$cache_time = 3600 * 24 * 31;
$postId = substr($id, -2);
$cache_time += 720 * $postId;
//...
$obCache = new CPHPCache;
if ($obCache->InitCache($cache_time, $cache_id, $cache_dir)) {
//...
Кокококой скилл!