• Resolved matorresani

    (@matorresani)


    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: https://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

    (@manegr)

    Hi @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)
  • You must be logged in to reply to this topic.