Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/wp-graphql/wp-graphql-smart-cache

Smart Caching & Cache Invalidation for WPGraphQL
https://github.com/wp-graphql/wp-graphql-smart-cache

- use elseif instead if else if, per code sniffer

ab462d9a94874de79308a1fbc3ad38a560adfb9f authored over 2 years ago by Jason Bahl <[email protected]>
- refactor the Collection->determine_query_types() to line up with the build_key function as far as order of queryId / query processing goes

1d9212dd998081dd52bca635f45001803a965b09 authored over 2 years ago by Jason Bahl <[email protected]>
- tweaks to spacing per code sniffer

12cf04f792b67e5a7c6eb64b2d9d21d23ed69014 authored over 2 years ago by Jason Bahl <[email protected]>
- update Document->get() function to return null if a persisted query could not be retrieved

- refactor determine_query_types function to simplify the logic around when to use the query vs q...

d8005bbbcfaa6ca6ba4fea3380bcc7bcc2fe3959 authored over 2 years ago by Jason Bahl <[email protected]>
Merge commit '1886279eec3c32572df893e8568618e9e99fa5d6' into feature/tests/post-tests

a9fac22a32f62bfa16d23fcbe64de8f65425d38a authored over 2 years ago by Jason Bahl <[email protected]>
Merge pull request #130 from wp-graphql/feature/publish-post-tests

Scaffold Tests

1886279eec3c32572df893e8568618e9e99fa5d6 authored over 2 years ago by Jason Bahl <[email protected]>
- revert change to .env.testing

- revert change to condition in Collection.php

97d0ff8ef5d7cec8a92a5d33ce640df1fac6e715 authored over 2 years ago by Jason Bahl <[email protected]>
- update composer.json to have autoloading for tests

- add tests/_data/config.php as an autoload file for tests
- add tests/_data/config.php file to d...

45defe203cc881b73cf41eca6666057079de24cb authored over 2 years ago by Jason Bahl <[email protected]>
- ensure the graphql_debug in results.php is output only if the array is not empty

b1f6b454870f056d3344c67f0d89a2e17210ff57 authored over 2 years ago by Jason Bahl <[email protected]>
- move the code that gets the query types to run in the `graphql_before_execute` hook, and add output to graphql_debug

588c167400c8ad762d269bae3e9c6e5f05240e86 authored over 2 years ago by Jason Bahl <[email protected]>
- revert change to .env.testing

3866cafe57887c955a1533a558b7f424d992c321 authored over 2 years ago by Jason Bahl <[email protected]>
- code sniffer adjustments

563a68ed962853fd5e8ba57f7938e666a3b162cd authored over 2 years ago by Jason Bahl <[email protected]>
Merge commit '753738908f8a2f23fc4050c0669b283237e4c9da' into feature/publish-post-tests

# Conflicts:
# composer.lock
# src/Cache/Collection.php

7bd98db98d0124e695e2037c1eae94250f4d2f51 authored over 2 years ago by Jason Bahl <[email protected]>
- remove debug code

c7103a82599e6e36f64cb52fa0b1cd268e4fe9f6 authored over 2 years ago by Jason Bahl <[email protected]>
Merge pull request #122 from wp-graphql/feature/purge-lists

Collect connection resolver names in queries. Purge when change

753738908f8a2f23fc4050c0669b283237e4c9da authored over 2 years ago by Jason Bahl <[email protected]>
- ignore prefix on filter

88c150e2557691cb60a37c9a32579718d409c328 authored over 2 years ago by Jason Bahl <[email protected]>
Merge pull request #124 from wp-graphql/feature/purge-settings

When allow/deny mode is changed, purge cache

92ccfa76ca4188eb9bd40ed41a1913fbcc2730b6 authored over 2 years ago by Mark Kelnar <[email protected]>
merge conflicts

8e04cdeafd9e4e265ff49ccb02e00c10e640fa99 authored over 2 years ago by Mark Kelnar <[email protected]>
- code formatting update

6cdb621ea3a15f70606c17fd09416dead1ffd549 authored over 2 years ago by Jason Bahl <[email protected]>
- code formatting update

21cbf9008a5dfc734785981014bd6a90d862acd2 authored over 2 years ago by Jason Bahl <[email protected]>
Merge commit '039df5fd93f2acf4d90b36563c6aceac98be277d' into feature/purge-lists

# Conflicts:
# composer.lock

1bd68baa66e4cec2c75507308f786f00e3bb742f authored over 2 years ago by Jason Bahl <[email protected]>
- remove some debug code

- remove test from CacheCollectionTest (will cover this case in PostCacheInvalidationTest.php)
- ...

ec76265f536830c6fd7136fa35ee64162f8aa4e9 authored over 2 years ago by Jason Bahl <[email protected]>
Merge pull request #127 from wp-graphql/feature/update-abstract-connection-callback-to-track-possible-types

Purge list caches for connections to Interfaces and Unions

87e854343eb803fd7b62d4eaa7f16c80762be4fb authored over 2 years ago by Jason Bahl <[email protected]>
Merge pull request #129 from wp-graphql/feature/publish-post-tests

Add tests for publishing post

df1b60c478bbc071c1470c28b7b354349cdcfc04 authored over 2 years ago by Jason Bahl <[email protected]>
- list invalidation

a6039c19ac2c61e02319accf927c1d75f550d028 authored over 2 years ago by Jason Bahl <[email protected]>
- working on tests

bd521a5e0653841904719af0b180719adfba4ea4 authored over 2 years ago by Jason Bahl <[email protected]>
- update CacheCollectionTest::testPluralNameCollectionInvokedWhenPostCreated to more accurately simulate publish post worklfow. When a post is created, it's in auto-draft state, and cache purge action should not have been evoked. When it transitions from auto draft to publish, cache purge action should have been evoked.

f9fd48599283cbb5f00beddab319f5515d072126 authored over 2 years ago by Jason Bahl <[email protected]>
- use the `transition_post_status` hook instead of `wp_insert_post` to determine when to purge caches for posts

- determine the post_type of the post being changed instead of always using `post` as the post ty...

00f7bd0944ac6ddf130e57dc8289049c16d70538 authored over 2 years ago by Jason Bahl <[email protected]>
- add failing test for "publishing a post should not invalidate a query for a single post"

4b7068e21c49d0850ce28a539c0be5eaa35a7b71 authored over 2 years ago by Jason Bahl <[email protected]>
Merge pull request #128 from wp-graphql/feature/add-wpgraphql-testcase

Add WPGraphQL Testcase as dependency

039df5fd93f2acf4d90b36563c6aceac98be277d authored over 2 years ago by Jason Bahl <[email protected]>
Merge branch 'main' into feature/add-wpgraphql-testcase

811b1c781a194369c37e66d9e251e5421e228785 authored over 2 years ago by Jason Bahl <[email protected]>
- add wp-grapqhl-testcase as dependency

- remove phpunit as dependency as it's added by codeception already

d67138cf876d53acf328d73783d4e2bbad07684a authored over 2 years ago by Jason Bahl <[email protected]>
- add support for queryId in addition to query string

c84b8731dbbcc53d95d33c9105c80d96d3648348 authored over 2 years ago by Jason Bahl <[email protected]>
- remove redundant "graphql_before_execute" action

4dabf851cca3e32baf72a6866b2ec8f03c60c618 authored over 2 years ago by Jason Bahl <[email protected]>
- update docblock

- run composer run fix-cs

f981584dee8e7a07ce42019855e714ad9f82ce9e authored over 2 years ago by Jason Bahl <[email protected]>
- update get_query_types to normalize the type names to lowercase strings, and to return early if the query string is empty

bda2b05af4f83d69f84ecf94e2bf15d719640c40 authored over 2 years ago by Jason Bahl <[email protected]>
- run composer fix-cs

- update Docblock
- update use statements to reference GraphQL Classes

2f7c0c67a42026e7678cfc938947b27945884503 authored over 2 years ago by Jason Bahl <[email protected]>
- refactor how we track which types should be mapped to a query

6bc3d60058fb3b2a10834f8d8a7b78d8911144a2 authored over 2 years ago by Jason Bahl <[email protected]>
- this updates the `abstract_connection_query_cb` method to better track the mapping of connection queries when the connection is to an Interface or Union type as we need to track the possible types instead of the connecting type.

d4d7f3a893def301113857f8ebcdb9a34d4283a4 authored over 2 years ago by Jason Bahl <[email protected]>
remove some codecept debug

946cf446de21c2c35c8802f0f12163f08a37237d authored over 2 years ago by Mark Kelnar <[email protected]>
When allow/deny mode is changed, purge cache

2d3930644e850572f4f839202168b89cd3aaed73 authored over 2 years ago by Mark Kelnar <[email protected]>
Remove some debug

cc470f751f0dcc6574ffffdd5c65570890d258a0 authored over 2 years ago by Mark Kelnar <[email protected]>
Support registered connection toType name

9644012ef8219faca7cf728c22833375569f2660 authored over 2 years ago by Mark Kelnar <[email protected]>
Collect conection resolver names in queries. Purge when change

409954ce68b08694c0087dae8e57cf5890096632 authored over 2 years ago by Mark Kelnar <[email protected]>
Merge pull request #117 from wp-graphql/feature/purge-metadata

Purge when update post meta data

80008088db8fe2584831a0d89daf73d201d71cd1 authored over 2 years ago by Jason Bahl <[email protected]>
Add post meta update test

e542eca9dc4f69adae47597f93ef2940a8d08bcd authored over 2 years ago by Mark Kelnar <[email protected]>
Purge when update post meta data

d307713f66c412960a741b4bfd94c120c5cb034c authored almost 3 years ago by Mark Kelnar <[email protected]>
Merge pull request #116 from wp-graphql/tests/cache-storage

When post or user content changes, trigger action callback

9915755d83d34eccd346af95b759c9a02cc3eb9f authored almost 3 years ago by Jason Bahl <[email protected]>
Merge remote-tracking branch 'origin/main' into tests/cache-storage

79c309ececf100f42637126109c6e41838a97e8d authored almost 3 years ago by Mark Kelnar <[email protected]>
Test the action callback when user changes

9044f9e6496718b25f52371b521fd33f96b53e96 authored almost 3 years ago by Mark Kelnar <[email protected]>
test author node is in storage for the url query

e031771b2d6c21437f6829e884b37d8fcbba6792 authored almost 3 years ago by Mark Kelnar <[email protected]>
Merge pull request #110 from wp-graphql/bug/url-encode-not-purging

Bug/url encode not purging

17e86326cbc6633030f1020cb77547156a244506 authored almost 3 years ago by Jason Bahl <[email protected]>
Add collection tests and wpgraphql_cache_purge_nodes action

e4dffce5577669d1224edaab4ca61ae71e101e42 authored almost 3 years ago by Mark Kelnar <[email protected]>
Add storage class tests

d232d86c168b6b17ebcdfa873238ffb685be9155 authored almost 3 years ago by Mark Kelnar <[email protected]>
Move transient and cache files to storage namespace

7e2b9d80beb58f78163b44ed06a8fea346769685 authored almost 3 years ago by Mark Kelnar <[email protected]>
Store the url mapping when GET request

0c59aeee07391e96d4f32f131f8cd185f3349065 authored almost 3 years ago by Mark Kelnar <[email protected]>
Url encoding matters for varnish paths

daa40082a9fb4fd5d3cf0231f04017072e4f6e25 authored almost 3 years ago by Mark Kelnar <[email protected]>
Save url only if GET request

9c042ecfeca2c48a7cd33c0caf8a6c5b0120edbb authored almost 3 years ago by Mark Kelnar <[email protected]>
Url was not matching invalidation url

f2f0190d0b63ce7c5269c92a84e9a4a7b6c13eea authored almost 3 years ago by Mark Kelnar <[email protected]>
Merge pull request #101 from wp-graphql/feature/purge-posts-cache

Feature/purge posts cache

b676130281bb931e0c8234653c5c836751721a2b authored almost 3 years ago by Mark Kelnar <[email protected]>
Add cache purge all do_action

d9bb928981682ea29887fcdd485e8d1cb9727164 authored almost 3 years ago by Mark Kelnar <[email protected]>
Do query string unslash when insert post content

9daf640128bce55e31a38a833ccf11146dfd56ca authored almost 3 years ago by Mark Kelnar <[email protected]>
If custom wp-graphql version specified, pull from wordpress.org

9604e81e094fe00c7a2f4768827e00c618d3e661 authored almost 3 years ago by Mark Kelnar <[email protected]>
Add individual nodes when the model loader runs for each resource in the query

9ea1e338df7fadea903a540e3059039f4e2808fd authored almost 3 years ago by Mark Kelnar <[email protected]>
Add leading slash to endpoint url

525aca3ba6c02e63f9d3d0e9c8efaa55975410da authored almost 3 years ago by Mark Kelnar <[email protected]>
Purge urls when a post changes

9d28881a41d781577302e49ded461cd67de81fc9 authored almost 3 years ago by Mark Kelnar <[email protected]>
Refactor the cached results to own class

ad6e06858e0fa4ebb18f66b9fe17789996c89a9f authored almost 3 years ago by Mark Kelnar <[email protected]>
Refactor the cached results to own class

3ca571c14d43600ca475511715607695a2f43f6e authored almost 3 years ago by Mark Kelnar <[email protected]>
Merge pull request #97 from wp-graphql/feature/admin-cache-purge

Purge cache in wp-admin cache settings page

54f0cdaf3d0774ef02147a41a380e0fa8ee4ac89 authored almost 3 years ago by Mark Kelnar <[email protected]>
Fix empty transient logic

2c0db7b108b894f6f80555d181f76db62af16524 authored almost 3 years ago by Mark Kelnar <[email protected]>
merge conflicts

b50959350b344f205021666ef2fba5a0767054c7 authored almost 3 years ago by Mark Kelnar <[email protected]>
Merge pull request #98 from wp-graphql/feature/delete-terms-with-query

Add alias name cleanup on query delete/update

edd25f0e208b48605eed2d69e6d019b6a20f2df6 authored almost 3 years ago by Jason Bahl <[email protected]>
Merge pull request #96 from wp-graphql/feature/object-cache

If using external object cache instead of transient

4c95400a194b2ffdc42ca8e374cd60e4aa3ff933 authored almost 3 years ago by Jason Bahl <[email protected]>
Add test for mutation delete and alias names

fb360868e8f1fd3912164093d1b3376b1692126a authored almost 3 years ago by Mark Kelnar <[email protected]>
Add alias name cleanup on query delete/update

68fcee9f7622a7ce133104463694c45c0e35d84e authored almost 3 years ago by Mark Kelnar <[email protected]>
The nonce check wasnot working as expected

5c100a1d4663db1ceeaed96ce9e660781557fa7d authored almost 3 years ago by Mark Kelnar <[email protected]>
Purge cache in wp-admin

a4bbd6a056a99d30c3231c42835ca99ae28dddb4 authored almost 3 years ago by Mark Kelnar <[email protected]>
Refactor to own files as I work through tests

1055cf12b938125afe8329857121361b9b118a61 authored almost 3 years ago by Mark Kelnar <[email protected]>
If using external object cache instead of transient

7d6fa893bce0f82db315607b737e9af92e051bef authored almost 3 years ago by Mark Kelnar <[email protected]>
Merge pull request #42 from wp-graphql/feature/graphiql-integration

Initial GraphiQL integration

63618cca8b92899aabc48f40e07a85b24fe61df1 authored almost 3 years ago by Jason Bahl <[email protected]>
Merge commit '61d0274f145cceb36bc8c55727d7ce1e0769f0de' into feature/graphiql-integration

# Conflicts:
# composer.lock
# src/Admin/Settings.php

342e1a1bf92c92dc4e25e986780ca09cdfd3cc79 authored almost 3 years ago by Jason Bahl <[email protected]>
- remove code for registering the persisted queries settings from the main plugin file as it's now in Settings.php

- fix typo in DocumentEditorContext.js

54da3ecc62670e74c315b9a8990fd7c6366ebf18 authored almost 3 years ago by Jason Bahl <[email protected]>
Merge pull request #94 from wp-graphql/feature/cache-purge

Feature/cache purge

61d0274f145cceb36bc8c55727d7ce1e0769f0de authored almost 3 years ago by Jason Bahl <[email protected]>
Rename purge function

97508dae4b046b9aecb634006215bb58d1a8758f authored almost 3 years ago by Mark Kelnar <[email protected]>
- fix textdomain

- fix spacing
- remove some debug code

880ad929af42b6db437db403b58a90f30fac967d authored almost 3 years ago by Jason Bahl <[email protected]>
- updating some namespaces to avoid conflicts

- add check to make sure `get_graphql_setting` function exists before trying to use it

342cf2646fb8e686da38d399788b018ce793f729 authored almost 3 years ago by Jason Bahl <[email protected]>
- updating some namespaces to avoid conflicts

- add check to make sure `get_graphql_setting` function exists before trying to use it

2fda7690e937755f97471475aea639322953de88 authored almost 3 years ago by Jason Bahl <[email protected]>
Add global ttl for graphql cache

74ef6a91db3e2b7a629bc881a8e4ea8ec65a6748 authored almost 3 years ago by Mark Kelnar <[email protected]>
- update namespace in the test

c87d4f775b5091681361d6ee9a0d45203b2a3ebd authored almost 3 years ago by Jason Bahl <[email protected]>
docblock

c9bf281b3777f9cfd1739ba75c6cabedb740c7b3 authored almost 3 years ago by Mark Kelnar <[email protected]>
Merge remote-tracking branch 'origin/main' into feature/cache-purge

c804b3bb868df2160c5ee6581bb564fedce959f7 authored almost 3 years ago by Mark Kelnar <[email protected]>
- updating merge conflict

189a12a23c986a9ab52b22f472707e37c7f96b94 authored almost 3 years ago by Jason Bahl <[email protected]>
- run composer fix-cs

- run yarn pretty

262e54c9127d4e99edc4fce835c7f3d88e2ea791 authored almost 3 years ago by Jason Bahl <[email protected]>
Merge commit '372252003b97188eb3422b41422339e563504257' into feature/graphiql-integration

ccec2bf5f6a52bd74be93677beef26244b36429a authored almost 3 years ago by Jason Bahl <[email protected]>
Merge pull request #20 from wp-graphql/feature/cache-results

Feature/cache results

372252003b97188eb3422b41422339e563504257 authored almost 3 years ago by Jason Bahl <[email protected]>
Merge branch 'feature/cache-results' into feature/cache-purge

2a438ee4595e0798212e140f314e82abbc679c12 authored almost 3 years ago by Mark Kelnar <[email protected]>
wordle

3ca76e0a4e9b22c62f71ffa99be0f4db3e66b367 authored almost 3 years ago by Mark Kelnar <[email protected]>
Add docblocks where needed

4f36d3ddf42ffb2a5d17e27877e3719a8af48c8f authored almost 3 years ago by Mark Kelnar <[email protected]>
- remove yarn error log from versioning

d7d6dc80f1a9a28c71e0c08c8fb4764cc3c72a79 authored almost 3 years ago by Jason Bahl <[email protected]>
Merge branch 'feature/scaffold-document-editor' into feat/merging-graphiql-integration

# Conflicts:
# composer.json
# src/Admin/Settings.php
# src/Document.php
# src/Document/Grant.ph...

ab4d02368a2d2146b254aff36c2e446a35a47520 authored almost 3 years ago by Jason Bahl <[email protected]>