discourse/app/assets/javascripts
Krzysztof Kotlarek 9610aea189
FEATURE: cache last post number (#15772)
Instead of relaying on /timings request, we should cache last read post number. That should protect from having incorrect unread counter when going back to topic list.

This additional cache is very temporary as once /timings request is finished, serializer will have a correct result.

Simplified flow is:
1. Store in cache information about last seen post number before /timings request is sent
2. When getting back to topic list compare value of last seen post number returned by /latest request and information in cache. If cache number is higher, than use it instead of information returned by /latest. In addition delete cache item as there is high chance that `/timings` request already finished.
3. Optionally, delete cache when timings request is done and topic list was not yet visited.

Keeping cache reasonably small should not affect performance.
2022-02-10 13:09:28 +11:00
..
admin FIX: use prev_period data if prev30Days value is not available. (#15867) 2022-02-09 22:09:33 +05:30
confirm-new-email
discourse FEATURE: cache last post number (#15772) 2022-02-10 13:09:28 +11:00
discourse-common Revert "PERF: Update ember-auto-import (#15814)" (#15854) 2022-02-07 22:41:07 +00:00
discourse-hbr Revert "PERF: Update ember-auto-import (#15814)" (#15854) 2022-02-07 22:41:07 +00:00
discourse-widget-hbs Revert "PERF: Update ember-auto-import (#15814)" (#15854) 2022-02-07 22:41:07 +00:00
docs
ember-addons
locales DEV: Add count to missing translation strings (#15509) 2022-01-09 23:10:32 +01:00
pretty-text DEV: add native lazy loading for emojis (#15830) 2022-02-09 12:18:59 +01:00
select-kit Revert "PERF: Update ember-auto-import (#15814)" (#15854) 2022-02-07 22:41:07 +00:00
truth-helpers Revert "PERF: Update ember-auto-import (#15814)" (#15854) 2022-02-07 22:41:07 +00:00
wizard DEV: Refactor animation for invalid inputs in wizard (#15334) 2021-12-16 17:17:36 -05:00
.npmrc
activate-account.js
admin.js.erb
app-boot.js
application.js DEV: Make screen-track a regular service (#14983) 2021-11-17 20:56:06 +01:00
auto-redirect.js
browser-detect.js
browser-update.js
discourse-loader.js
discourse-shims.js FEATURE: Local chunked uppy backup uploads with a new uploader plugin (#14894) 2021-11-23 08:45:42 +10:00
embed-application.js
ember_include.js.erb DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
ember_jquery.js
env.js
google-tag-manager.js
google-universal-analytics-v3.js
google-universal-analytics-v4.js
handlebars-shim.js
main_include_admin.js DEV: Remove old backup uploader and resumable.js (#15365) 2021-12-21 15:02:10 +10:00
markdown-it-bundle.js
onpopstate-handler.js
package.json
polyfills.js DEV: Remove iOS 9.3 polyfills (#15343) 2021-12-17 02:47:13 +01:00
pretty-text-bundle.js
print-page.js
service-worker.js.erb FIX: Disable service worker proxying in chrome 97-97.0.4692 (#15638) 2022-01-18 19:41:25 +00:00
set-prototype-polyfill.js
start-discourse.js DEV: Avoid using globals (#14909) 2021-11-13 13:10:13 +01:00
template_include.js
test-shims.js
vendor-common.js DEV: Remove jQuery UI vendor dependencies (#15700) 2022-01-28 11:21:59 +11:00
vendor-theme-tests.js DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
vendor.js DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
widget-runtime.js
wizard-application.js
wizard-shims.js DEV: Use Uppy in wizard-field-image uploads (#15269) 2021-12-13 15:23:44 +10:00
wizard-start.js
wizard-vendor.js DEV: Remove jQuery UI vendor dependencies (#15700) 2022-01-28 11:21:59 +11:00
yarn.lock Revert "PERF: Update ember-auto-import (#15814)" (#15854) 2022-02-07 22:41:07 +00:00