jwineman
Forum Replies Created
-
Forum: Plugins
In reply to: [Cloudflare] Automatic Cache ClearsYou can instantiate a WordPressClientAPI which is the class we use to send API calls to Cloudflare.com like this:
https://github.com/cloudflare/Cloudflare-WordPress/blob/master/src/WordPress/Hooks.php#L21-L26$this->config = new Integration\DefaultConfig(file_get_contents(CLOUDFLARE_PLUGIN_DIR.'config.js', true)); $this->logger = new Integration\DefaultLogger($this->config->getValue('debug')); $this->dataStore = new DataStore($this->logger); $this->integrationAPI = new WordPressAPI($this->dataStore); $this->integrationContext = new Integration\DefaultIntegration($this->config, $this->integrationAPI, $this->dataStore, $this->logger); $this->api = new WordPressClientAPI($this->integrationContext);You can call purge cache like this:
https://github.com/cloudflare/Cloudflare-WordPress/blob/master/src/WordPress/WordPressClientAPI.php#L38$this->api->zonePurgeCache($zoneId);Thanks,
JohnForum: Plugins
In reply to: [Cloudflare] Can’t get plugin to workForum: Plugins
In reply to: [Cloudflare] Can’t get plugin to workForum: Plugins
In reply to: [Cloudflare] Can’t get plugin to workHi @tomwake,
If you’re getting a 500 error you should see errors in the PHP error log, can you post those please?
Thanks,
JohnHi @yohannes1,
The error is with the twentyseventeen theme, not the cloudflare plugin. You probably added an extra comma to line 165 on functions.php for that theme.
Thanks,
JohnForum: Plugins
In reply to: [Cloudflare] CSRF Token not found.You probably need to contact your host and ask if they are reading the php://input stream anywhere. I assume you are on some kind of custom WordPress hosting.
Thanks,
JohnForum: Plugins
In reply to: [Cloudflare] PHP 7.0 compatibilityWe’re removing guzzle in the next release, this shouldn’t be an issue after that.
Thanks,
JohnForum: Plugins
In reply to: [Cloudflare] Plugin not workingHi @diede33,
This likely isn’t an issue with our plugin. admin-ajax.php is core WordPress code, if its 404ing its possible your blog is configured incorrectly.
Are there any errors in your PHP error log?
If you disable all the other plugins on your blog and try again does it still fail?
Is there anything custom about your WordPress installation?Thanks,
JohnForum: Plugins
In reply to: [Cloudflare] HTTPS Redirection Stopped workingIf you disable “Automatic Cache Management” the admin bar will be re-enabled. In the next update we’ll remove the functionality that disables the admin bar completely.
Thanks,
JohnForum: Reviews
In reply to: [Cloudflare] ;)Hi @jennylili,
Sorry to hear that! Can you give us more details around the problems you’re having so we can try to fix them?
Thanks,
JohnForum: Plugins
In reply to: [Cloudflare] Admin Panel Not Loading Due to Access-Control-Allow-Origin ErrorHi,
This is an issue with your Cloudfront configuration. You can enable the header here:
http://stackoverflow.com/a/19939041
Thanks,
JohnForum: Plugins
In reply to: [Cloudflare] Horrible since latest updateHi,
Sorry to hear that! Can you be more specific about what is wrong when you enable it? The PHP7 issues were warnings, not errors, and have been fixed in the latest release.
What specifically is happening when you enable the plugin on your sites? Are there errors in the browser’s console or PHP error log?
Thanks,
JohnForum: Plugins
In reply to: [Cloudflare] 3.0.6 Mixed ContentHi @mchilson,
The functionality has changed intentionally. We no longer support converting to relative URLs because we are trying to move towards HTTPS only. The Automatic HTTPS rewrites only rewrites URLs it knows can be served over HTTPS.
Thanks,
JohnForum: Plugins
In reply to: [Cloudflare] Remove Cloudflare plugin site stopsHi @alemones,
If your website is slow without any plugins activated you’ll need to debug that with your hosting provider.
Thanks,
JohnForum: Plugins
In reply to: [Cloudflare] Anouncement: Disabling Admin BarIts not the admin area, its the bar that shows up at the top of the screen that shows up if you view your own blog posts as an admin.
Thanks,
John