Skip to content

[FEAT]: Add caching #340

@lnovitz

Description

@lnovitz

Is there an existing request for this feature?

  • I have searched the existing issues

Is there a pain point in the app driving this feature request?

Doesn't make sense if we're hitting the database every time a user logs in. We should be caching.

Desired Behavior

When a user logs in, load cached job app data (this should be fast, no processing page needed). If the today's date is different from the last cached date, then we can continue as normal background_tasks.add_task(fetch_emails_to_db, user)

Criteria for Completion

  • login endpoint adjusted to load from cache first, check date
  • fetch_emails_to_db should be modified to add email_records (batch) to cache for the user along with the current datetime
  • create a cache of some sort?!

Anything else?

Since we're using Next.js, might want to consider something from below:

Code of Conduct

  • I've read the Code of Conduct and understand my responsibilities as a member of the jobba.help Community

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions