In this video, we'll take a look at the last three options in the "Other" section of Advanced Settings: Caching, CSS class and Theme.


Cache is a mechanism that stores copies of previously fetched data like pages or images into a temporary storage or cache so that future requests of that data can be retrieved faster. Views caching will check to see if results are stored in the cache and if so, render it from cache which is faster than going to the database for the information it needs. For now we only have a short list of content but if we expect to have a lot on this site, or really if we just want to speed up our site, we should enable caching.

  • Caching
    • Click "None"
    • For: This page(override) (I’ll not enable it for the “My Content” view so that users see their content immediately when they upload it.)
    • [x] Time-based
    • (Apply(this display))
      • Query results: 5 min (This is the amount of time the query itself should be cached. So, this is how long Views will wait before it checks the database for new or updated information.)
      • Rendered output: 5 min (This is the actual HTML output of Views.)
  • (Apply(this display))

The potential downside of this feature is that when the View is cached, it won’t display updates like new content immediately. Generally it is considered more beneficial than detrimental to enable caching, even if it’s just for 1 minute, especially on high traffic sites.

CSS class

This field lets you set one or more CSS class(es) to be used for this view. This is a handy feature for theming.


The Theme setting is less of a configuration option and more of a helper function for those who are responsible for theming the output of your view. This setting gives you suggestions as to which tpl.php files that you should edit (or copy into your theme folder) if you want to affect the output of this view.

  • (Save) (Save the View)

And now we'll move on to creating a dynamic block that lists upcoming sales for our shop.