[wp-hackers] compression and caching

Demetris kikizas at gmail.com
Tue Dec 29 11:17:27 UTC 2009

On Tue, Dec 29, 2009 at 10:43 AM, Peter Westwood
<peter.westwood at ftwr.co.uk> wrote:
> On 29 Dec 2009, at 04:49, Weston Ruter wrote:
>>  6. Removes the default 'ver' query parameter which WordPress adds to
>>  every script src if no version argument is supplied on
>>  wp_enqueue/register_script: this is important for Web-wide caching of
>>  scripts loaded from ajax.googleapis.com, for example. When registering
>>  new scripts, pass the filemtime in as the version so that whenever a file
>>  changes, the concatenated script will be regenerated.
> This issue of ver being included even when not supplied will not be
> avoidable using the core in 3.0 following on from the fix of this ticket -
> http://core.trac.wordpress.org/ticket/11315
I’m using the new value on a site running trunk, and it works fine:

wp_register_script('jquery', 'http://path/to/googleapis/jquery', FALSE, NULL);

On the general subject of compression/caching and WP core, I’m happy
this was removed from the core, as it is the business of the server.

And, as it is the business of the server, one good thing I believe we
can do is start recommending shared-hosting providers that support PHP
caching and gzipping.  Admittedly, this functionality comes at a cost,
and you will probably not find it in $39.99/year packages, but I’ve
seen modern providers offering it in packages that come at around



More information about the wp-hackers mailing list