Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all articles
Browse latest Browse all 19291

forrajas on "[Plugin: W3 Total Cache] Use a specific user-agent for prime cache"

$
0
0

Hi,

In changeset #663605, you started using an empty user-agent in the prime function to fix a bug :
w3_http_get($url, array('user-agent' => ''));

But, instead of that, I think it would be fine to use a specific user-agent, like W3 Total Cache Preload + version for example, so that it would be easier to identify prime cache requests in the server log (for debugging purpose for example). Thus, this line of code could become something like that :
w3_http_get($url, array('user-agent' => 'W3 Total Cache Preload/' . W3TC_VERSION));
You could also define a constant in define.php for this user-agent.

What do you think about that ?

Thanks !

http://wordpress.org/plugins/w3-total-cache/


Viewing all articles
Browse latest Browse all 19291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>