mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Remove SearchEngineInterface::clearAllCache, keep last hour phrasea cache
This commit is contained in:
@@ -361,6 +361,7 @@ class PhraseaEngine implements SearchEngineInterface
|
|||||||
{
|
{
|
||||||
$this->initialize();
|
$this->initialize();
|
||||||
$this->checkSession();
|
$this->checkSession();
|
||||||
|
$this->clearAllCache(new \DateTime('-1 hour'));
|
||||||
|
|
||||||
assert(is_int($offset));
|
assert(is_int($offset));
|
||||||
assert($offset >= 0);
|
assert($offset >= 0);
|
||||||
|
@@ -223,15 +223,6 @@ interface SearchEngineInterface
|
|||||||
*/
|
*/
|
||||||
public function clearCache();
|
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
|
* Returns a subscriber
|
||||||
*
|
*
|
||||||
|
@@ -1071,13 +1071,4 @@ class SphinxSearchEngine implements SearchEngineInterface
|
|||||||
{
|
{
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @inheritdoc
|
|
||||||
*/
|
|
||||||
public function clearAllCache(\DateTime $date = null)
|
|
||||||
{
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user