Commit Graph

13 Commits

Author SHA1 Message Date
Diego Heras aca4a16bae
ci/cd: fix whitespaces (#11749) 2021-05-16 20:13:54 +02:00
Diego Heras 69125add3e
core: redo search cache from scratch. resolves #10382 (#10447)
In simple words, when you make a request in Jackett, the results are saved in memory (cache). The next request will return results form the cache improving response time and making fewer requests to the sites.
* We assume all indexers/sites are stateless, the same request return the same response. If you change the search term, categories or something in the query Jackett has to make a live request to the indexer.
* There are some situations when we don't want to use the cache:
** When we are testing the indexers => if query.IsTest results are not cached
** When the user updates the configuration of one indexer => We call CleanIndexerCache to remove cached results before testing the configuration
** When there is some error/exception in the indexer => The results are not cached so we can retry in the next request
* We want to limit the memory usage, so we try to remove elements from cache ASAP:
** Each indexer can have a maximum number of results in memory. If the limit is exceeded we remove old results
** Cached results expire after some time
* Users can configure the cache or even disable it
2020-12-11 23:14:21 +01:00
Diego Heras 6156ad0cd5
core: allow renaming & merging of trackers with config (part 1 #8355) (#8608)
core: allow renaming & merging of trackers with config (part 1 #8355) (#8608)

* rename site field to id in yaml indexers
* add id field in c# indexers
* use id field instead of class name in c#
2020-05-11 21:59:28 +02:00
Cory d7dddf6009
core: remove string extensions in favor of explicit conversion (#7839) 2020-03-24 21:39:38 -05:00
Diego Heras e55e92f9ac
Core: Fix line endings to match style guide(#7476) 2020-03-03 10:28:26 -06:00
Cory 889a8da4e5
Convert functions and properties to expression bodies when able (#7312)
Convert functions and properties to expression bodies when able
2020-02-25 10:08:03 -06:00
Cory 348dddfbee
core: Apply declarations styles (#7166) 2020-02-11 11:16:19 +13:00
Cory 98541ac6f8
core: Sort and remove usings (#7159) 2020-02-10 07:08:34 +13:00
Jonas Dellinger 1715f0fda4
core: API - "configured" parameter (#7120)
Add support for a "configured" parameter in the API 2.0. Only return configured indexers if true.
2020-02-07 07:22:46 +13:00
flightlevel ce84264490 Add Authorization 2018-05-12 12:44:47 +10:00
flightlevel 615794a4bf Minor controller updates as the web app expects no content 2018-05-05 17:10:36 +10:00
flightlevel f162902b36 Refactor controllers for ASP.NET Core (Authentication disabled for now) 2018-05-01 22:55:09 +10:00
flightlevel a752683965 Copy controllers untouced from Jackett project 2018-05-01 22:03:16 +10:00