Title: Exclude certain classes from the cache
Last modified: January 4, 2022

---

# Exclude certain classes from the cache

 *  [hadleytrev](https://wordpress.org/support/users/hadleytrev/)
 * (@hadleytrev)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/exclude-certain-classes-from-the-cache/)
 * Hi there,
 * We’re having a problem with WP Fastest Cache caching foreign currency on product
   pages meaning that people are seeing the incorrect currency.
 * This wouldn’t too big of a problem, but it seems like some of the product pages
   cache crashes / automatically clears the cache then if someone from a different
   currency visits the page first it will show the wrong currency for the next visitor.
 * So, the two solutions I can think to fix this would be exclude the price based
   on the class or figuring out what is causing the cache to disappear on the product
   page periodically.
 * Any ideas on either would be super helpful, thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/exclude-certain-classes-from-the-cache/#post-15220441)
 * no, you cannot exclude a part of a page because pages are saved as a static html
   file when they are cached. The price must be loaded via Ajax.
 *  Thread Starter [hadleytrev](https://wordpress.org/support/users/hadleytrev/)
 * (@hadleytrev)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/exclude-certain-classes-from-the-cache/#post-15221514)
 * Thank you Emre,
 * Do you know what could be causing the cache to clear / crash periodically on 
   product pages? If we can figure that out then perhaps it will alleviate the issue.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/exclude-certain-classes-from-the-cache/#post-15222045)
 * please take a look at the following tutorial.
    [https://www.wpfastestcache.com/tutorial/woocommerce-settings/#after-order-status-changed](https://www.wpfastestcache.com/tutorial/woocommerce-settings/#after-order-status-changed)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Exclude certain classes from the cache’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/exclude-certain-classes-from-the-cache/#post-15222045)
 * Status: not resolved