I just have the wp-admin page rule in. If you go to cloudflare settings, scroll down toward the bottom and you can clear the page cache.
still have the same problem :/
Hi Bdark,
Are you asking how to edit/delete the rule? If you go back to the Page Rules page, you will see a gear icon that will let you edit or delete a rule.
You can purge your CloudFlare cache by going to:
settings->CloudFlare settings->Purge Cache
Hi,
Just posting a solution that a customer sent me that appears to work when you modify a variable within the Smush.it plugin(s).
if ( !$file_url ) {
// determine the public URL
$file_url = str_replace( 'SERVER PATH TO UPLOADS DOC', 'HTTP URL FOR
DOCUMENTS IN UPLOADS', $file );
}
[Please post code or markup snippets between backticks or use the code button.]
@damoncloudflare – is this fix with or without setting page rule for wp-admin
Linda Lou
I just tried replacing with the code above but am oddly getting 500 errors on my site. I must not have the path correct or something. Oh well, mine is currently working without the modification in code so I will leave it alone.
Hi Linda,
“is this fix with or without setting page rule for wp-admin”
It is actually a modification to the actual plugin – so doesn’t matter about the CloudFlare rules. I would still recommend keeping the wp-admin rule in place.
note: We didnt’ write the mod to the plugin, a community member did, so I don’t want to say if it will work in all circumstances.
Additional note:
CloudFlare is testing a beta feature for image optimization for Pro accounts. If you are a Pro account already, you can test it out…just keep in mind that it might break something & you should turn it off in your CloudFlare settings (settings->CloudFlare settings) if you see a problem.
@damoncloudflare
Am asking if I have to keep the rule yourdomain.com/wp-content* or delete it.
Also,where should I add exactly the variable code?
@ B_Dark,
I would delete the comment rule (keep the wp-admin* rule).
I can’t give directions for modifying the plugin (not my area of expertise…just shared because someone shared it with me). Probably not needed if the wp-admin rule fixes the issue.
Alright, but the right rule is wp-admin* or wp-admin/* ?
But, I haven’t seen any so far with wp-admin/*
Hi B_Dark,
yourdomain.com/wp-admin/*
All, I was able to use Smush.It without issue once I added a custom rule in Cloudflare Threat Control to trust the following Yahoo IP:
98.136.171.205
98.139.160.207
Maybe you only need one of these. I added both and then tested that it worked.
Hi,
Thanks for posting those IPs. I’m going to make sure that they are added to our Macro list.