예제 #1
0
 /**
  * {@inheritdoc}
  */
 protected function fire()
 {
     $this->info('Clearing the cache...');
     $this->forum->getAssets()->flush();
     $this->admin->getAssets()->flush();
     $this->cache->flush();
 }
 /**
  * Handle the command.
  *
  * @param Rollback $command
  */
 public function handle(Rollback $command)
 {
     $migration = $command->getMigration();
     $migration->unassignFields();
     $migration->deleteStream();
     $migration->deleteFields();
     $this->cache->flush();
 }
예제 #3
0
 /**
  * Clear the cache.
  *
  * @param  null|\Illuminate\Database\Eloquent\Model  $user
  * @return $this
  *
  * @throws \RuntimeException
  */
 public function refresh(Model $user = null)
 {
     if (!is_null($user)) {
         return $this->refreshFor($user);
     }
     if (!$this->cache instanceof TaggedCache) {
         throw new RuntimeException('Your cache driver does not support blanket cache purging. Use [refreshFor] instead.');
     }
     $this->cache->flush();
     return $this;
 }
예제 #4
0
 /**
  * Clear the cache.
  *
  * @param  null|int|\Illuminate\Database\Eloquent\Model  $user
  * @return $this
  */
 public function refresh($user = null)
 {
     if (!is_null($user)) {
         return $this->refreshFor($user);
     }
     if ($this->cache instanceof TaggedCache) {
         $this->cache->flush();
         return $this;
     }
     return $this->refreshForAllUsersIteratively();
 }
예제 #5
0
 /**
  * Clear the cache.
  *
  * @param  null|\Illuminate\Database\Eloquent\Model  $authority
  * @return $this
  */
 public function refresh($authority = null)
 {
     if (!is_null($authority)) {
         return $this->refreshFor($authority);
     }
     if ($this->cache instanceof TaggedCache) {
         $this->cache->flush();
     } else {
         $this->refreshAllIteratively();
     }
     return $this;
 }
예제 #6
0
 /**
  * Clear the cache.
  *
  * @param  null|int|\Illuminate\Database\Eloquent\Model  $user
  * @return $this
  */
 public function refresh($user = null)
 {
     if (!is_null($user)) {
         return $this->refreshFor($user);
     }
     if ($this->cache instanceof TaggedCache) {
         $this->cache->flush();
         return $this;
     }
     foreach (Models::user()->lists('id') as $id) {
         $this->refreshFor($id);
     }
     return $this;
 }
예제 #7
0
 /**
  * {@inheritdoc}
  */
 public function clear()
 {
     $this->cache->flush();
     // Impossible to determine if the flush was successful.
 }
 /**
  * {@inheritdoc}
  */
 protected function clearAllObjectsFromCache()
 {
     $this->store->flush();
     return true;
 }
예제 #9
0
 /**
  *  Clear the cache
  *
  *  @return void
  */
 public function clear()
 {
     $this->store->flush();
 }
예제 #10
0
 /**
  *  Completely flush the cache
  *
  *  @param  string  $locale
  *  @param  string  $group
  *  @param  string  $namespace
  *  @return void
  */
 public function flushAll()
 {
     $this->store->flush();
 }