You are here

protected function Recommender::purgeOutdatedRecords in Recommender API 6.2

4 calls to Recommender::purgeOutdatedRecords()
CooccurrenceRecommender::computeSimilarityDatabase in ./Recommender.php
CorrelationRecommender::computePredictionMemory in ./Recommender.php
CorrelationRecommender::computeSimilarityMemory in ./Recommender.php
SlopeOneRecommender::computePredictionDatabase in ./Recommender.php

File

./Recommender.php, line 383

Class

Recommender
The super class for all other Recommender algorithms.

Code

protected function purgeOutdatedRecords($table) {
  update_sql("DELETE FROM {recommender_{$table}} WHERE app_id={$this->appId} AND created<>{$this->created}");
}