Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Optimize logged user check #1

Open
2aces opened this issue Feb 15, 2018 · 0 comments
Open

Optimize logged user check #1

2aces opened this issue Feb 15, 2018 · 0 comments

Comments

@2aces
Copy link
Collaborator

2aces commented Feb 15, 2018

If there are multiple oca jobs in the queue checking if the user is logged in, admin-ajax will be polled for each one, consumming too many server resources and delaying the queue. We should optimize this.

Considerations:

  • Is there any reason for not doing once by page?
  • Is a logged_in_status variable with an expiration time a good idea?
  • shouldn't check for logged in statys only for jobs with different content for priv users?
  • Is it possible to use JWT (JSON Web Tokens)?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant