mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-08 03:08:29 +02:00
Cache website metadata to avoid duplicate scraping (#401)
* Cache website metadata to avoid duplicate scraping * fix test setup
This commit is contained in:
@@ -25,6 +25,10 @@ class MockStreamingResponse:
|
||||
|
||||
|
||||
class WebsiteLoaderTestCase(TestCase):
|
||||
def setUp(self):
|
||||
# clear cached metadata before test run
|
||||
website_loader.load_website_metadata.cache_clear()
|
||||
|
||||
def render_html_document(self, title, description):
|
||||
return f'''
|
||||
<!DOCTYPE html>
|
||||
|
Reference in New Issue
Block a user