Advanced Ads Pro comes with Passive Cache-Busting, a performance optimized method to deliver ads on cached websites. It basically performs the checks needed to choose the correct ad for a visitor using JavaScript. This includes most Visitor Conditions.

While it is rather simple to extend Visitor Conditions with PHP based checks by just looking at the basic code, it is more complex to add the appropriate JavaScript code.

Find a full example on how to add a new Visitor Condition including a JavaScript based check for passive cache-busting below.

Please note that this code needs adjustments. Only developers should use it and we can’t help customizing it. If you find an obvious issue then please let us know.

 

 Visitor Conditions