Title: Cache plugins and PHP extension inclusion
Last modified: February 2, 2017

---

# Cache plugins and PHP extension inclusion

 *  [Eidmantas](https://wordpress.org/support/users/eidmantas/)
 * (@eidmantas)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/cache-plugins-and-php-extension-inclusion/)
 * Hey guys,
 * I normally just run WP sites (without pre-made HTML caching such as WordPress
   Fastest Cache offers) and not bother with HTML caching. But some sites have quite
   a lot of plugins and require .HTML caching.
 * The problem is, is that I like to monitor everything with NewRelic, which has
   an PHP extension. By default, when .PHP scripts are run it automatically includes
   its code to gather data.
 * But with WP-FC and pre-rendering .HTML the plugin completely ignores (from what
   I understand) doesn’t generate the .HTML files through php -q, or anything like
   that? Since those scripts are not included.
 * NewRelic staff suggested to disable NewRelic PHP for these HTML catched websites
   and just manually enter their JS in every page, but then I loose statistics for
   things like E-Commerce or WP-Admin, which are not catched.
 * Do you guys have any similar experiences? Maybe some other caching plugin would
   include NewRelic?
 * Thanks.

Viewing 1 replies (of 1 total)

 *  [Tim Nash](https://wordpress.org/support/users/tnash/)
 * (@tnash)
 * Spam hunter
 * [9 years, 3 months ago](https://wordpress.org/support/topic/cache-plugins-and-php-extension-inclusion/#post-8733233)
 * The new relic PHP options will only work with PHP being run at the time the client
   visits the site. You don’t need to disable it you can run it alongside the javascript
   beacon.
 * In such a scenario you use the javascript beacon on your static assets (i.e the
   HTML pages) and the PHP extension will autmatically pick up bits in wp-admin 
   or on pages with dynamic content that hit PHP.

Viewing 1 replies (of 1 total)

The topic ‘Cache plugins and PHP extension inclusion’ is closed to new replies.

## Tags

 * [NEwRelic](https://wordpress.org/support/topic-tag/newrelic/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Tim Nash](https://wordpress.org/support/users/tnash/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/cache-plugins-and-php-extension-inclusion/#post-8733233)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
