You are here:  » Cache


Cache

Submitted by Mark Hennessy on Tue, 2013-02-12 02:26 in

Has anyone had any luck compressing their css using WP Minify or something like W3 Total Cache.

I am looking to relieve the load on my server, however when I tested these plugins a few months ago it caused a few issues.

Regards

Submitted by support on Tue, 2013-02-12 08:56

Hello Mark,

I'd advise against using caching plugins alongside PriceTapestry.org since the pages being created are dynamic therefore would not reflect datafeed changes until cache expiry - so not necessarily a problem as long as the cache expiry period is consistent with the feed update / import. Caching plugins should certainly be disabled during development / HTML design as the caching would of course prevent you from seeing the result of changes.

There's almost certainly a plugin to simple enable gz output compression - I'll check it out but it can easily be added by simply adding the following to the end of your wp-config.php file:

  ob_start("ob_gzhandler");

Cheers,
David.
--
PriceTapestry.com

Submitted by Mark Hennessy on Thu, 2013-02-14 06:52

Thanks David,

Understood RE cache. I remember you explaining those issues.

Regarding the ob_start, is there anything I need to implement after adding that code? Such as installing a compression plugin?

Submitted by support on Thu, 2013-02-14 09:01

Hi Mark,

No need for any plugins, it's all internal PHP functionality!

Cheers,
David.
--
PriceTapestry.com

Submitted by Mark Hennessy on Tue, 2013-02-26 09:51

Afternoon David,

Just confirming this goes in the wp-config.php file as I have seen a few sites mention index.php.

Submitted by Mark Hennessy on Tue, 2013-02-26 09:52

Also will it cause any problems with my currency conversion widget which I am currently using?

Submitted by support on Tue, 2013-02-26 10:11

Hi Mark,

Shouldn't affect any widget functionality - and either index.php or wp-admin.php is fine, it shouldn't make any difference...

Cheers,
David.
--
PriceTapestry.com