/** * {@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(); }
/** * 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; }
/** * 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(); }
/** * 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; }
/** * 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; }
/** * {@inheritdoc} */ public function clear() { $this->cache->flush(); // Impossible to determine if the flush was successful. }
/** * {@inheritdoc} */ protected function clearAllObjectsFromCache() { $this->store->flush(); return true; }
/** * Clear the cache * * @return void */ public function clear() { $this->store->flush(); }
/** * Completely flush the cache * * @param string $locale * @param string $group * @param string $namespace * @return void */ public function flushAll() { $this->store->flush(); }