{"action":"created","issue":{"url":"https://api.github.com/repos/stuttter/wp-spider-cache/issues/1","repository_url":"https://api.github.com/repos/stuttter/wp-spider-cache","labels_url":"https://api.github.com/repos/stuttter/wp-spider-cache/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/stuttter/wp-spider-cache/issues/1/comments","events_url":"https://api.github.com/repos/stuttter/wp-spider-cache/issues/1/events","html_url":"https://github.com/stuttter/wp-spider-cache/issues/1","id":133834301,"number":1,"title":"Holy Moly","user":{"login":"Tarendai","id":58855,"avatar_url":"https://avatars.githubusercontent.com/u/58855?v=3","gravatar_id":"","url":"https://api.github.com/users/Tarendai","html_url":"https://github.com/Tarendai","followers_url":"https://api.github.com/users/Tarendai/followers","following_url":"https://api.github.com/users/Tarendai/following{/other_user}","gists_url":"https://api.github.com/users/Tarendai/gists{/gist_id}","starred_url":"https://api.github.com/users/Tarendai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tarendai/subscriptions","organizations_url":"https://api.github.com/users/Tarendai/orgs","repos_url":"https://api.github.com/users/Tarendai/repos","events_url":"https://api.github.com/users/Tarendai/events{/privacy}","received_events_url":"https://api.github.com/users/Tarendai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-15T22:35:29Z","updated_at":"2016-02-16T13:52:45Z","closed_at":null,"body":"https://github.com/stuttter/wp-spider-cache/blob/master/includes/class-output-cache.php#L396\r\n```\r\n\tprotected function do_variants( $dimensions = false ) {\r\n\t\t// This function is called without arguments early in the page load,\r\n\t\t// then with arguments during the OB handler.\r\n\t\tif ( false === $dimensions ) {\r\n\t\t\t$dimensions = wp_cache_get( \"{$this->url_key}_vary\", $this->group );\r\n\t\t} else {\r\n\t\t\twp_cache_set( \"{$this->url_key}_vary\", $dimensions, $this->group, $this->max_age + 10 );\r\n\t\t}\r\n\t\t// Sort keys\r\n\t\tif ( is_array( $dimensions ) ) {\r\n\t\t\tksort( $dimensions ); // OCD much?\r\n\t\t\tforeach ( $dimensions as $key => $function ) {\r\n\t\t\t\t$fun   = create_function( '', $function );\r\n\t\t\t\t$value = $fun();\r\n\t\t\t\t$this->keys[ $key ] = $value;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n```"},"comment":{"url":"https://api.github.com/repos/stuttter/wp-spider-cache/issues/comments/184691153","html_url":"https://github.com/stuttter/wp-spider-cache/issues/1#issuecomment-184691153","issue_url":"https://api.github.com/repos/stuttter/wp-spider-cache/issues/1","id":184691153,"user":{"login":"skeltoac","id":52292,"avatar_url":"https://avatars.githubusercontent.com/u/52292?v=3","gravatar_id":"","url":"https://api.github.com/users/skeltoac","html_url":"https://github.com/skeltoac","followers_url":"https://api.github.com/users/skeltoac/followers","following_url":"https://api.github.com/users/skeltoac/following{/other_user}","gists_url":"https://api.github.com/users/skeltoac/gists{/gist_id}","starred_url":"https://api.github.com/users/skeltoac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skeltoac/subscriptions","organizations_url":"https://api.github.com/users/skeltoac/orgs","repos_url":"https://api.github.com/users/skeltoac/repos","events_url":"https://api.github.com/users/skeltoac/events{/privacy}","received_events_url":"https://api.github.com/users/skeltoac/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T13:52:45Z","updated_at":"2016-02-16T13:52:45Z","body":"Check out the docs for `vary_cache_on_function()`, which is renamed to `wp_output_cache_vary()` here. This is probably the most advanced or hard to grasp feature in batcache.\r\nhttps://vip.wordpress.com/documentation/caching/batcache/vary_cache_on_function/"}}