WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Pages with DONOTCACHEPAGE still serve cached pages (1 post)

  1. artifex223
    Member
    Posted 1 year ago #

    I am simply trying to disable W3TC caching for non-mobile users.

    On any given page, before loading the header, I check to see if the user is on mobile, and if not, I define DONOTCACHEPAGE as true.

    Pages visited by mobile users are now cached, and the pages they are served are those that were cached. Pages visited by desktop visitors are now never cached BUT they are served the pages cached by mobile users!

    If I understand it correctly, DONOTCACHEPAGE prevents a page from being cached. OK. But how can I prevent cached versions of pages from being served? I do not want my desktop users seeing mobile pages.

    Thanks.

    http://wordpress.org/plugins/w3-total-cache/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic