diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-04-18 22:13:48 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2016-04-18 22:13:48 +0200 |
commit | ca8d61b95879314e25aa87c11b5bbfd0df7adb91 (patch) | |
tree | 4f24f1a20f4eccddd8008faa351121c097848218 /src/Wallabag/ImportBundle/Import/PocketImport.php | |
parent | 23feba63bb22c240f22243738b1157f88041948a (diff) | |
parent | 23d24b17509ed3e8725bc911a8a2f8fe502e38f2 (diff) | |
download | wallabag-ca8d61b95879314e25aa87c11b5bbfd0df7adb91.tar.gz wallabag-ca8d61b95879314e25aa87c11b5bbfd0df7adb91.tar.zst wallabag-ca8d61b95879314e25aa87c11b5bbfd0df7adb91.zip |
Merge pull request #1942 from wallabag/optimize-import
Optimize import
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/PocketImport.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/PocketImport.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php index f598e611..29361a32 100644 --- a/src/Wallabag/ImportBundle/Import/PocketImport.php +++ b/src/Wallabag/ImportBundle/Import/PocketImport.php | |||
@@ -258,6 +258,7 @@ class PocketImport implements ImportInterface | |||
258 | // flush every 20 entries | 258 | // flush every 20 entries |
259 | if (($i % 20) === 0) { | 259 | if (($i % 20) === 0) { |
260 | $this->em->flush(); | 260 | $this->em->flush(); |
261 | $this->em->clear($entry); | ||
261 | } | 262 | } |
262 | ++$i; | 263 | ++$i; |
263 | } | 264 | } |