Remove SearchEngineInterface::clearAllCache, keep last hour phrasea cache

This commit is contained in:
Romain Neutron
2014-02-05 12:31:42 +01:00
parent beceb9350b
commit 7406aa8fc2
3 changed files with 1 additions and 18 deletions

View File

@@ -361,6 +361,7 @@ class PhraseaEngine implements SearchEngineInterface
{
$this->initialize();
$this->checkSession();
$this->clearAllCache(new \DateTime('-1 hour'));
assert(is_int($offset));
assert($offset >= 0);

View File

@@ -223,15 +223,6 @@ interface SearchEngineInterface
*/
public function clearCache();
/**
* Clear all cache prior to the given date (if applicable)
*
* If no date provided, clear all entries
*
* @return SearchEngineInterface
*/
public function clearAllCache(\DateTime $date = null);
/**
* Returns a subscriber
*

View File

@@ -1071,13 +1071,4 @@ class SphinxSearchEngine implements SearchEngineInterface
{
return $this;
}
/**
* @inheritdoc
*/
public function clearAllCache(\DateTime $date = null)
{
return $this;
}
}