Free more cache
Free the entire memory cache when the system is out of memory and using the Normal memory setting. Aggressive and higher memory settings still keep a lot of cache.
Test:
- Cache 100 pages by scrolling. Okular is now using 6GB of memory (on a 4k monitor with single page view).
- Run a program to use all available RAM so that the system starts using swap memory.
Result: Okular is using 1.2GB of memory without this commit, and 200MB with this commit.
Edited by Kevin Slagle