Skip to content

Commit

Permalink
Merge pull request #170 from wp-graphql/feature/move-cache-key-genera…
Browse files Browse the repository at this point in the history
…tion-to-wpgraphql-core

feat: rely on WPGraphQL Core's functionality for outputting X-GraphQL-Key headers
  • Loading branch information
jasonbahl authored Oct 18, 2022
2 parents 205f80c + dc3ad1b commit 40fc83a
Show file tree
Hide file tree
Showing 14 changed files with 7,230 additions and 7,527 deletions.
13,954 changes: 6,977 additions & 6,977 deletions composer.lock

Large diffs are not rendered by default.

Binary file removed pr152-wp-graphql-smart-cache.zip
Binary file not shown.
6 changes: 5 additions & 1 deletion src/Admin/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ public static function show_in_admin() {
return ( 'on' === $display_admin );
}

// Settings checkbox set to on to enable caching
/**
* Whether caching is enabled, according to the settings
*
* @return bool
*/
public static function caching_enabled() {

// get the cache_toggle setting
Expand Down
Loading

0 comments on commit 40fc83a

Please sign in to comment.