Change the number of ads cached; Add a static variable CACHING that will
enable or disable caching in the code.