GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress/Cloudflare - how to purge one post? (https://gfy.com/showthread.php?t=1171766)

druid66 08-07-2015 01:34 AM

Wordpress/Cloudflare - how to purge one post?
 
hey guys,
anyone know how to purge one post?
to be precise: i need photos/thumbs to be purged.
exactly same problem have one dude here:
https://wordpress.org/support/topic/...are-file-purge
but finally he didn't get solution, maybe some of you who are familiar with php can do this?
it's a small piece of code that need to be tweaked and added to functions.php

WP-Script 08-07-2015 02:59 AM

Have you tried this plugin? https://wordpress.org/plugins/cloudflare-cache-purge/

druid66 08-07-2015 03:18 AM

didn't tried any plugin, wanted to resolve this with some small php code but i'll look at your plugin once this topic will go down without more ideas.
thanks.

freecartoonporn 08-07-2015 08:36 AM

from cloudflare.com or check their api;.

robwod 08-07-2015 08:50 AM

  1. Login to Cloudflare
  2. Choose your site from the list
  3. Selecting the "Caching" Icon from the top menu
  4. Choose "Purge Individual Files"
  5. Paste the URL to your post in the provided text area
  6. Click the blue Purge button

That should do it. Worst case scenario is you'll need to "purge everything". Not sure if that's available on the free options, but on the paid it is.

freecartoonporn 08-07-2015 10:26 AM

Quote:

Originally Posted by robwod (Post 20544472)
  1. Login to Cloudflare
  2. Choose your site from the list
  3. Selecting the "Caching" Icon from the top menu
  4. Choose "Purge Individual Files"
  5. Paste the URL to your post in the provided text area
  6. Click the blue Purge button

That should do it. Worst case scenario is you'll need to "purge everything". Not sure if that's available on the free options, but on the paid it is.

yes , on free plan you can do purge everything.

druid66 08-07-2015 11:51 PM

sorry guys but none of above will help me.
i know i can purge single file - doesn't work like i need it, i can paste post url it will be purged but it shows same thumbs in gallery as it was when post were created and i've ftp my own thumbs - in short: thumbs were not purged when i've purged post, doesn't work that way.

obviously purge all is not a solution at all i do not want to purge everything.

if any of you would check link i've pasted in first post, it's php code there to purge media/thumbs/images - can anyone check it and tweak?

if not i will just start testing plugins (wanted to avoid this..)

EddyTheDog 08-07-2015 11:58 PM

You would need to purge thumbs individually I would assume - Also, I am sure you thought of this, but just in case. Have you deleted the thumbs in your local machine's cache?..

druid66 08-08-2015 12:00 AM

the code from my link does exactly as you wrote - it's purging thumbs, just not manually, script does it.
if someone will figure out how to use it it could be good to use by everyone (who need it)
yes i've deleted cache.

druid66 08-11-2015 02:48 AM

tried purge plugin. no effect on thumbs.
seems that for purging thumbs i need to purge all - pretty shitty solution imo.
think i'll just write 2 months of posts in advance and purge all.


All times are GMT -7. The time now is 01:11 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123