Caching and its trade-offs – OCR A Level Computer Science lesson (H446)
Students learn to explain the nature, benefits and drawbacks of caching and why programmers reuse tested components.
Lesson 3 of 13 in unit 12.10 Computational Methods and Year 12 Exams, taught in Year 12, Summer 1. It answers one big question: When does keeping a copy help, and when does it hurt?
By the end, students can explain the nature, benefits and drawbacks of caching and why programmers reuse tested components.
- The Build (the main task)
- Explain two benefits and two drawbacks of the Brackenmoor Buses app caching timetables on passengers' phones (4 marks), and one reason its developers should reuse a tested fare-calculation component (2 marks).
- Support version
- A benefit · drawback table with the cache's job described and one row done, and the sentence starter 'Because the copy is on the phone, …'.
- Challenge
- Explain how the app could tell whether a cached timetable is stale, and the trade-off in choosing how often to check.
- Real-world link
- Brackenmoor's journey-planner app, used on buses where the mobile signal drops between villages.
- Key words
- Caching, Cache and Trade-off, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “A cached copy is always up to date”; “Caching only means the cache memory inside the processor”.
- OCR H446 specification
- 2.1.2 (c); (d).
Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.
Students can do it all on paper.
Also sold in the Computational Methods and Year 12 Exams unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.
What's included
- Slide deck (PowerPoint)
- Lesson plan (Word)
- Worksheet (Word)
- Support worksheet with scaffolds (Word)
- Single-teacher licence: use and adapt it with your own classes
More for A Level Computer Science
See allStudents learn to identify the features that make a problem solvable by computational methods and apply problem recognition to a scenario.
Free sample lessonStudents learn to identify the parts of a problem that can be processed concurrently and explain the benefits and trade-offs of doing so.
Students learn to apply abstraction, decomposition and divide and conquer to a long exam scenario, using its facts in every point.
Written for the specifications named. Not endorsed by or affiliated with any exam board.