Location: PHPKode > scripts > Cache variables > index.php
<?php
require 'class.cache.php';


$arry = cache::factory() -> load('some_array');

if( ! $arry)
{
    $arry[] = 'it is my cacher, want you try?';
    $arry[] = 'that is second key in array. that\'s cool';
    
    cache::factory() -> save( 'some_array', $arry, 60);
}

print_r( $arry); // modfield values, and see, that cache takes from file
Return current item: Cache variables