Mike Jolley
c326115db2
Clear category 0 when deleting caches
2018-05-30 13:29:44 +01:00
Mike Jolley
461dfd6489
Avoid query if no limit is set.
2018-05-01 13:26:57 +01:00
Rodrigo Primo
18a8a6b752
Don't schedule event to delete transients if limit set to 0
...
Third-party code can set the limit of transients to be deleted to 0 using the filter `woocommerce_delete_version_transients_limit`. If this happens, the code shouldn't schedule a cron event to delete more transients to avoid flooding the list of cron jobs.
Fixes #19890
2018-04-27 10:31:45 -03:00
ahmedofali
d06854a0b4
Defining array before attempting to append to it
2018-03-25 18:28:14 +00:00
Mike Jolley
d052b2ee46
cache per parent to avoid large caches
2018-03-13 19:00:08 +00:00
Mike Jolley
49c2f2b28e
Also during clean_term_cache
2018-02-28 18:35:58 +00:00
Mike Jolley
4bce7b0223
Use single cache for hierarchy
2018-02-28 18:24:03 +00:00
Mike Jolley
4b2642c757
phpcs
2018-02-26 19:18:38 +00:00
Mike Jolley
997b852a43
clean_term_cache callback to flush subcategory cache
2018-02-26 19:15:42 +00:00
Rodrigo Primo
257feb63bd
Fix doc typo
2018-01-18 16:50:27 -02:00
Mike Jolley
9f059e17a9
Add helper function instead of calling method, and restore old method for bw compat
2017-11-08 15:07:00 +00:00
Mike Jolley
45c6f0e00d
Restore old function name and phpcs
2017-11-08 14:54:13 +00:00
Gerhard Potgieter
7b9fb6c0cb
Change nocache_headers hook firing ( #17540 )
...
* wp hook is too late to fire the nocache_headers filter, some caching plugins read it before that it seems.
* Create do_not_cache_page helper function and call that instead of nocache_headers
* Must add checks to prevent caching on certain pages as well
* Nothing to return
2017-11-08 14:27:30 +00:00
Mike Jolley
3d55a45bfa
Only change nocacheheaders when on a cart/checkout page
2017-10-16 21:29:23 -07:00
Claudio Sanches
a13158a75a
Apply wc_maybe_define_constant() in all places
2017-09-05 16:52:39 -03:00
Mike Jolley
299fcc327c
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# includes/class-wc-cache-helper.php
2017-08-07 17:11:26 +01:00
Mike Jolley
622b4b35d6
Remove white space
2017-08-07 17:10:36 +01:00
Mike Jolley
af1dce3544
Set nocache constants on all nocache_headers
2017-08-07 11:01:38 +01:00
Marian Kadanka
6183a840db
Fix product category archives not being cached due to inconsistency
...
Wordpress function get_queried_object_id() returns conflicting IDs
for pages and product category archives which in current
implementation results in product category archives possibly not
being cached if their tag ID conflicts with Woocommerce's special
page IDs - cart, checkout, etc.
Let's switch to implementation using is_page() to address this.
2017-07-31 20:47:19 +02:00
Mike Jolley
6cea4e87cc
Compare page IDs rather than URIs in the cache helper
2017-06-20 12:09:46 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Mike Jolley
00ed627b29
Data stores
2016-11-14 18:18:08 +00:00
Justin Stern
a3e371e0d7
Make WooCommerce core play nice with Codeception ( #11845 )
...
If is_blog_installed() is false then skip some installation steps that
are performed on the 'init' action and which require the database to be
available
2016-11-09 11:53:39 +00:00
Claudio Sanches
1481f1f7b4
Include trailing slash in REQUEST_URI before compare for prevent caching
2016-11-08 17:14:31 -02:00
Rami Yushuvaev
140d0efb99
i18n: Avoid using HTML tags in translation strings ( #12166 )
...
* i18n: Remove some HTML tags from translation strings
* i18n: simpler translation string
* i18n: translations strings with surrounding `<strong>` HTML tags should be moved outside the translation string
* i18n: Avoide using `<code>' HTML tags in translation strings
* i18n: Split the notice to avoide using HTML tags in translation strings
2016-10-24 21:56:37 -02:00
Matty
ae75f8b8cd
Adjusts all references of 'woothemes' to 'woocommerce' in relevant URLs, excluding the Travis CI integration which correctly uses 'woocommerce/woocommerce'.
2016-09-28 12:17:40 +02:00
Aristeides Stathopoulos
d4e3faf014
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos
0516e96843
PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos
82f3cc221e
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis
2016-08-27 07:23:02 +03:00
Justin Shreve
e65ab6adec
start transfering things to billing_ prefix
2016-03-17 12:39:29 -07:00
Justin Shreve
25430afd33
Make session loading work correctly, add an alias for address_1 and shipping_address_1, fix total spent and order count
2016-03-17 09:41:12 -07:00
Claudio Sanches
3e955f6086
[2.5] Create new function to prevent endpoint indexing
2016-03-01 13:45:25 -03:00
Mike Jolley
8edf6d9286
Noindex endpoints
...
Closes #10433
2016-02-29 12:52:45 +00:00
Mike Jolley
9ba5b7ee26
Add helpers to get and increment cache prefixes
...
Allows wp_cache to be invalidated with 1 call
2015-11-13 23:06:38 +00:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Mike Jolley
b3a3a998bb
Add trailing slash in get_page_uris to reduce likelihood of conflicts
...
Fixes #9386
2015-10-22 16:33:05 +01:00
Mike Jolley
821434cbb7
Fix geolocation redirect with querystring
2015-09-07 16:58:05 +01:00
Mike Jolley
cf7a9c3913
Case insentiive matching in cache helper
...
@georgestephanis
2015-09-01 16:40:17 +01:00
Mike Jolley
f7e4bf224d
Exclude cart and account pages from geolocation
...
Closes #8967
2015-09-01 15:41:05 +01:00
Nicola Mustone
7f879b416a
added filter woocommerce_delete_version_transients_limit
2015-08-18 11:47:19 +02:00
Mike Jolley
9f703b96db
delete_version_transients in blocks of 1000 to prevent timeouts
...
Uses cron. @claudiosmweb Closes #8431
2015-07-15 15:12:54 +01:00
Mike Jolley
9adbdd4a2c
Tweak URL generation before redirect
2015-06-22 15:30:42 +01:00
Mike Jolley
f988aae387
Use hashes and server side redirection
2015-06-22 14:55:15 +01:00
Mike Jolley
ba2e638e54
nocache download_file requests
...
Closes #8162
2015-05-28 11:44:47 +01:00
Mike Jolley
915342f38b
[2.3] Only clear in delete_version_transients when version is set
2015-05-27 15:56:49 +01:00
Mike Jolley
e383889957
[2.3] Optimise delete_version_transients
...
1. WC does not work network wide so _site_transient does not need
checking
2. The LIKE matches timeout and transient keys
2015-05-27 12:03:46 +01:00
Mike Jolley
62c70603ec
[2.3] When updating transients, clear previous version of transients
...
Closes #8131 @claudiosmweb
2015-05-25 01:48:17 +01:00
Mike Jolley
b9eb83403e
Split prevent_caching() method
2014-10-27 15:00:14 +00:00
Nicola Mustone
359859df5c
Avoid notice errors with W3 Total Cache
...
Avoid errors in the admin with W3 Total Cache when you add an extra space by mistake.
2014-10-21 22:24:55 +02:00
Mike Jolley
2b55643460
Notices from earlier cache helper change
2014-10-02 17:18:04 +01:00