added first vers of cache system
updated cache calls and rewrited  array
updated cache functions