Title: Exclude doesnt work :/
Last modified: August 22, 2016

---

# Exclude doesnt work :/

 *  [toho](https://wordpress.org/support/users/toho/)
 * (@toho)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/exclude-doesnt-work-1/)
 * I have a custom header code to show users different homepage based on cookie.
   Basically if you are first visitor you will see landing page
 * Here is code:
 *     ```
       <!-- mfunc -->
       if ( (!isset( $_COOKIE['wastutaj']) ) && ( $_SERVER["REQUEST_URI"] == '/' ) ) {
       	setcookie('wastutaj', 1 ,time () + (8640 * 30), "/");
       	header( "Location: /home/" );
       	x_get_view( x_get_stack(), 'wp', 'header' );
       }
       else {
       	x_get_view( x_get_stack(), 'wp', 'header' );
       }
       <!-- mfunc -->
       ```
   
 * I have added mfunc as recommended to disable caching+specified this page in exclusion
   list. Unfortunately feature works only one time, then have to purge cache for
   it to work again. Please help if you know how 🙂
 * [https://wordpress.org/plugins/w3-total-cache/](https://wordpress.org/plugins/w3-total-cache/)

The topic ‘Exclude doesnt work :/’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [toho](https://wordpress.org/support/users/toho/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/exclude-doesnt-work-1/)
 * Status: not resolved