Unable to exclude pages using autoptimize_filter_noptimize
-
Hi,
I have the following code in place within my functions, but the pages at /employees are still cached:
add_filter('autoptimize_filter_noptimize','my_ao_noptimize',10,0); function my_ao_noptimize() { if (strpos($_SERVER['REQUEST_URI'],'employees')!==false) { return true; } else { return false; } }
I have put in some echoing and removed the return false to confirm it is running, and it is, but the disabling of caching isnt working
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Unable to exclude pages using autoptimize_filter_noptimize’ is closed to new replies.