Skip to content

Creating a caching mechanism #10

@OliCallaghan

Description

@OliCallaghan

Caching

What is needed

Ok, so in order to stop people having to refresh the whole course every time that a new question is created, I'm going to create a caching mechanism, which involves the user sending a syllabusNumber, and a pointNumber, and then the caching mechanism will output the appropriate data.

How?

The caching mechanism will use MongoDB and "poof!" as if by magic, it will work

Why do we need it?

In order to stop the Node pixies running around like loonies on all of the sources which we scrape from, we need to build a caching mechanism to make the pixies only break a sweat once.

Oli, Why are you posting all this stuff here?

I am posting all this stuff here, because if anyone wants to know how the mechanism works in the future, whether it be improving or integrating other code into it, then this issue will be the place to go.

Well stop writing this, and make it first!

Good point, OK.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions