You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.
As an upgrade to #460, use Django's built-in caching (with its expiration support to replace the dicts in search/search_indexes.py.
This will make the code simpler. This may also mean replacing the ALLOW_CACHING setting that was added in that PR in favor of a CACHE_TIMEOUT setting used to populate the Django caching TIMEOUT setting. This would be zero (no caching) by default and could be changed as appropriate in production.
The text was updated successfully, but these errors were encountered:
At @carsongee's recommendation, we should also add tests to this improvement PR which ensure the number of DB queries goes down. This can be accomplished with assertNumQueries.
Closes#467.
Improves upon PR #460 by getting rid of a "global" variable and
a custom settings.py value. Also adds tests which confirm that
fewer queries are done when the caching is used.
Closes#467.
Improves upon PR #460 by getting rid of a "global" variable and
a custom settings.py value. Also adds tests which confirm that
fewer queries are done when the caching is used.
Closes#467.
Improves upon PR #460 by getting rid of a "global" variable and
a custom settings.py value. Also adds tests which confirm that
fewer queries are done when the caching is used.
As an upgrade to #460, use Django's built-in caching (with its expiration support to replace the dicts in
search/search_indexes.py
.This will make the code simpler. This may also mean replacing the
ALLOW_CACHING
setting that was added in that PR in favor of aCACHE_TIMEOUT
setting used to populate the Django cachingTIMEOUT
setting. This would be zero (no caching) by default and could be changed as appropriate in production.The text was updated successfully, but these errors were encountered: