/**
  * Default use PHP native session.
  *
  * @return ChipVN_ImageUploader_Cache
  */
 public function getCache()
 {
     if (!$this->cache) {
         $this->cache = ChipVN_Cache_Manager::make('Session');
     }
     // ensure don't overrides session of other accounts
     $this->cache->setOption('prefix', $this->getIdentifier());
     return $this->cache;
 }
Example #2
0
 /**
  * Default use PHP native session.
  *
  * @return ChipVN_ImageUploader_Cache
  */
 public function getCache()
 {
     if (!$this->cache) {
         $this->cache = ChipVN_Cache_Manager::make('Session');
     }
     // update group use real identifier
     $this->cache->setOption('group', $this->getIdentifier());
     return $this->cache;
 }