Can pages be excluded by PHP Code?

I disabled boost by below code in boost settings. need to disable drupal caching on mobile devices

<?php
$browser_stat = browscap_get_browser();
if ($browser_stat['ismobiledevice'] == "false"){
return TRUE
}

?>

Comments

Crell’s picture

I am not going to support entering PHP code through the UI. That's a security risk this module does not need.

A feature to provide a magically named function that gets called if it exists (similar to Computed Field) I would accept a patch for, but have no time to work on it myself.

Crell’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)