Title: Doesn&#039;t work with wpengine
Last modified: August 22, 2016

---

# Doesn't work with wpengine

 *  [bmp](https://wordpress.org/support/users/bphippen/)
 * (@bphippen)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/doesnt-work-with-wpengine/)
 * Doesn’t seem to work with sites hosted on wpengine.
 * The age verification pops up with every page view when not logged in. When logged
   in, the plugin works fine
 * [https://wordpress.org/plugins/age-verify/](https://wordpress.org/plugins/age-verify/)

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

 *  [Will West](https://wordpress.org/support/users/tsewlliw/)
 * (@tsewlliw)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/doesnt-work-with-wpengine/#post-5868614)
 * Based on a quick read of the [plugin](https://plugins.trac.wordpress.org/browser/age-verify/tags/0.2.8/includes/class-age-verify.php#L357)
   [code](https://plugins.trac.wordpress.org/browser/age-verify/tags/0.2.8/includes/class-age-verify.php#L240)
   it looks like the plugin isn’t compatible with the WP Engine cache. I may be 
   able to help out from the WP Engine end, I’ve reached out the plugin author to
   verify some details of its operation.
 *  [eclipse-vl](https://wordpress.org/support/users/eclipse-vl/)
 * (@eclipse-vl)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-wpengine/#post-5868681)
 * Hi – I’m having the same issue with the verification popping up on every page,
   and we’re with WP Engine. Have you had any luck working out a way to only make
   the verification come up on the initial landing page?
 *  Thread Starter [bmp](https://wordpress.org/support/users/bphippen/)
 * (@bphippen)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-wpengine/#post-5868682)
 * I ended up just creating some custom javascript using jQuery and jQuery cookie
   and it works fine.
 * Essentially I call a modal on every page load unless it can find a valid cookie
   which gets set when a visitor clicks on an “I am over 18” button.
 * Here it is in action if you would like to see it: [http://vsgdemo1.wpengine.com/](http://vsgdemo1.wpengine.com/)
 *     ```
       <script type="text/javascript">
       	jQuery(document).ready(function($){
   
           	var modal = UIkit.modal("#age-verify", {keyboard:false, bgclose:false, center:true});
   
       		if ( $.cookie('age-verification') == 'yes' ) {
       		    modal.hide();
       		}
       		else {
       			modal.show();
       	        $(".uk-modal-close").click(function() {
       			$.cookie('age-verification', 'yes', { expires: 30, path: '/' });
       			});
       	      }
       	});
       	</script>
       ```
   
 *  [eclipse-vl](https://wordpress.org/support/users/eclipse-vl/)
 * (@eclipse-vl)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-wpengine/#post-5868688)
 * Hi – thanks that looks great. Unfortunately my coding ability is pretty limited
   so I think it will be safer to stick with a plugin.
 * I’ve found another one I might try out – [https://wordpress.org/plugins/itro-popup/](https://wordpress.org/plugins/itro-popup/)

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

The topic ‘Doesn't work with wpengine’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/age-verify_ac6a50.svg)
 * [Age Verify](https://wordpress.org/plugins/age-verify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/age-verify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/age-verify/)
 * [Active Topics](https://wordpress.org/support/plugin/age-verify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/age-verify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/age-verify/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [eclipse-vl](https://wordpress.org/support/users/eclipse-vl/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-wpengine/#post-5868688)
 * Status: not resolved