You may know the feeling: an animation has been running cleanly for hours, then suddenly a single frame jumps out of line, or an effect draws a completely different shape for a few frames. You change nothing, and yet the error persists. Errors like these are frustrating because they are hard to reproduce. The good news: they usually have a clear cause, namely the After Effects cache. With the right approach, you can eliminate them in a few minutes.
Key Takeaways
Frame bugs are usually caused by outdated cache data, not by faulty animations. After Effects stores calculated layers and precompositions in a cache so that the preview runs faster.
Third-party plugins are particularly susceptible. Effects such as Trapcode Particular, Optical Flares or Video Copilot plugins can cause the cache not to be updated even though it should be.
The entire memory also includes the undo memory. If you purge it, you can no longer recover your last steps with Ctrl+Z.
The disk cache must be purged separately. It is located in the preferences under Media and Disk Cache and is not part of the normal memory purge.
The Caps Lock key prevents unnecessary recalculations while you work. This lets you work smoothly until the cache is clean again.
Step 1: Correctly Identify the Error
Before you touch the cache, you should make sure the cache is actually to blame. Typical signs are one or two frames that differ clearly from their surroundings, effects that suddenly show an old shape even though you have changed them, or jumps that only occur at certain points on the timeline. An example from the video: you change the wiggle setting of a ball, but the Paint Animate effect continues to draw the old line on four frames. That is a classic cache problem.

Step 2: Understand the Cache Principle
After Effects wants to save time and therefore does not calculate everything twice. Individual layers and the effects applied to them are stored in RAM. The program also keeps precompositions in memory. As long as nothing changes on these elements, After Effects reuses the stored images. This is exactly where the risk lies: if a change is not detected, the old intermediate state remains.
Since CS6, there has also been the disk cache. It stores images that have dropped out of RAM on your hard drive. This explains why a preview often reappears faster after a restart if you work with an SSD.
Step 3: Recognize Plugins as a Common Source of Errors
Not every bug comes from the main application. Problems occur more frequently with third-party plugins in particular. In the video, Trapcode Particular, Optical Flares by Video Copilot, After Effects' Time Warp and the Paint Animate effect are mentioned, among others. If you work with such effects and observe strange results, the cache is the first suspect.

Step 4: Purge the Entire Memory
The most important step is purging the memory. In the Edit menu, open Purge and choose Image Cache Memory or All Memory. Image Cache Memory removes only the stored preview images, while All Memory also deletes the undo memory.
Be careful here: if you purge all memory, you can no longer undo your last work steps. Therefore, save your project beforehand and check whether you still need changes that have not been saved.

Step 5: Purge the Disk Cache Specifically
The disk cache is not deleted via the Purge command, but via the preferences. Open the preferences and select the Media and Disk Cache section. There you can see the location of the cache and can empty it using a button. With larger projects, several gigabytes can quickly accumulate, which is why deleting on a slow hard drive can take a bit longer. On an SSD, it is usually much faster.
In CS6, the process works similarly. You purge the disk cache via the preferences and then additionally purge the Image Cache Memory so that really nothing old is left over.

Step 6: Use Caps Lock while working
After clearing, you should prevent the cache from immediately filling up with errors again. To do this, activate Caps Lock. As long as it is active, After Effects doesn't recalculate anything. You can still scrub through the preview, because the images are loaded from the disk cache.
The video shows that the process visibly works: After clearing, the cache is displayed in blue, meaning it is loaded from memory, and scrubbing stays smooth as long as no new calculations are pending.

Step 7: Rebuild the preview
As soon as the cache is empty and you want to work again, you deactivate Caps Lock. Now After Effects recalculates the frames and saves them fresh. The composition is then cleanly rebuilt. Over time, the preview in complex projects becomes a bit slower again, because it has to be re-rendered. That is the price for stable results.

Step 8: Use the cache as a routine
You don't have to completely clear the cache with every problem. If you notice jumps or strange images, it makes sense to clear the cache before looking for other causes. Especially in projects with many plugins, it is worth clearing the cache regularly, especially after major changes. This saves you long troubleshooting sessions that often turn out to have no real cause.

Summary – Fixing frame bugs in After Effects: How to clear the cache properly
Strange frame errors in After Effects are rarely a coincidence. Usually, After Effects has worked with saved intermediate states that were not updated. Third-party plugins in particular tend to cause this. By clearing the image cache memory, specifically deleting the disk cache in the preferences, and using Caps Lock to work undisturbed, you can get the problem under control. Remember to save your project beforehand, because All Memory also includes the undo memory. The price for clean results is a slightly slower preview until the cache is rebuilt.
FAQ
Why does only a single frame jump out of my animation?This is usually a cache problem. After Effects uses a saved intermediate state for this frame, even though the layer has changed.
Do I always have to clear all memory?No. If the error only affects the image, the image cache memory is often enough. All memory is only necessary if the disk cache is also affected or you want to be sure to remove all intermediate states.
Do I lose my work when clearing the cache?The project data is retained. However, the undo memory is deleted when clearing all memory. That's why you should save beforehand.
Why is the preview slower after clearing?After clearing, After Effects has to recalculate and cache the frames. This takes time until the cache is filled again.
What exactly does Caps Lock do?As long as Caps Lock is active, After Effects does not recalculate any frames. This way you can work in peace without the cache constantly changing.
How do I know if a plugin is causing problems?Pay attention to whether the errors occur mainly with certain effects. If they disappear after clearing the cache, it is a strong indication of a cache error triggered by the plugin.
