Title: Problem with website caching
Last modified: September 25, 2024

---

# Problem with website caching

 *  Resolved [matorresani](https://wordpress.org/support/users/matorresani/)
 * (@matorresani)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/problem-with-website-caching/)
 * The plugin is very good and increased my page speed performance. But I had to
   deactivate it because of the problems I had with website caching.
 * When website caching is on, it does not update the home page for mobile users
   when a post is created or updated. This is a news website, so it needs to always
   be up to date with the latest news.
 * But that’s ok, I could just deactivate the website caching option, which I did.
   However, that caused a bigger problem: the website became too slow (slower than
   without the plugin), and the page speed no longer worked: [http://prntscr.com/dO7HtnTf_psq](http://prntscr.com/dO7HtnTf_psq)(
   page speed error)
 * I guess the best way I could use the plugin is with caching enabled and clearing
   the cache via code (PHP function). Is that possible? Is there an example of how
   to clear the cache programmatically?

Viewing 1 replies (of 1 total)

 *  Plugin Support [Mane Grigoryan](https://wordpress.org/support/users/manegr/)
 * (@manegr)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/problem-with-website-caching/#post-18049811)
 * Hi [@matorresani](https://wordpress.org/support/users/matorresani/) , 
   Thank 
   you for contacting us.
 * Yyou can clear the cache by calling `do_action('two_clear_cache');` or `\TenWebOptimizer\
   OptimizerAdmin::clear_cache(false, true);` .
 * Please, kindly let us know if it helped. 
   Regards, Mane

Viewing 1 replies (of 1 total)

The topic ‘Problem with website caching’ is closed to new replies.

 * ![](https://ps.w.org/tenweb-speed-optimizer/assets/icon-256x256.png?rev=2753401)
 * [10Web Booster - Website speed optimization, Cache & Page Speed optimizer](https://wordpress.org/plugins/tenweb-speed-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tenweb-speed-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tenweb-speed-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/tenweb-speed-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tenweb-speed-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tenweb-speed-optimizer/reviews/)

## Tags

 * [caching](https://wordpress.org/support/topic-tag/caching/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mane Grigoryan](https://wordpress.org/support/users/manegr/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/problem-with-website-caching/#post-18049811)
 * Status: resolved