Latest revision |
Your text |
Line 42: |
Line 42: |
| == Deleting all ghostposts in a thread == | | == Deleting all ghostposts in a thread == |
|
| |
|
| In delete-by-search-query.php:
| | * {{ic|$use_specificboard = true;}} |
| | | * {{ic|$specificboard = 'a';}} |
| $use_specificboard = true;
| | * {{ic|$querymatch = "tnum = 1234141"; // Delete by thread num}} |
| $specificboard = 'a';}}
| |
| $querymatch = "tnum = 1234141"; // Delete by thread num
| |
| | |
| Then run:
| |
|
| |
|
| php /home/atc/delete-by-search-query.php | | php /home/atc/delete-by-search-query.php |
|
| |
|
| |
| == Purging Files ==
| |
|
| |
| Local files on the frontend/dumper server are automatically purged on image ban & image delete inside the web console.
| |
|
| |
| Files on CDN2 require more work as they are on a separate server.
| |
|
| |
| === Manual Procedure (CDN2) ===
| |
|
| |
| sudo shred /desuzfs/media/desu/k/image/0000/00/0000000000.jpg
| |
| sudo shred /desuzfs/media/desu/k/thumb/0000/00/0000000000s.jpg # note the s, and thumbs are always jpg
| |
| sudo rm /desuzfs/media/desu/k/thumb/0000/00/0000000000s.jpg
| |
|
| |
|
| |
| (Files on the frontend server are located in /srv/foolfuuka/boards/)
| |
|
| |
|
| |
| (Purge CloudFlare Cache)
| |
|
| |
| curl -X DELETE \
| |
| https://api.cloudflare.com/client/v4/zones/YOUR_API_KEY_HERE/purge_cache \
| |
| -H 'cache-control: no-cache' \
| |
| -H 'X-Auth-Email: YOUR_AUTH_EMAIL_HERE' \
| |
| -H 'X-Auth-Key: YOUR_KEY_HERE'\
| |
| -H 'content-type: application/json' \
| |
| --data '{"files":["https://yourdomain.org/k/thumb/0000/00/0000000000s.jpg"]}'
| |
|
| |
| Finally, use automatic purge to clear CloudFlare Cache
| |
| and there is 24 hours to do this
| |
|
| |
| NEVER CLICK THE IMAGE URL. be very careful of posting it also
| |
|
| |
| only share it in the following form: k/thumb/0000/00/0000000000s.jpg
| |
|
| |
| === Frontend Sync Banned Images from FoolFuuka ===
| |
|
| |
| There’s a script nas-rem-img.php that lives on the dumper /var/www/foolfuuka
| |
|
| |
| * Login to CDN2.
| |
| * Run {{ic|php /home/atc/test.php}}
| |
| * This will delete banned files from the NAS
| |
|
| |
| This is cron’d to run daily.
| |
|
| |
| === Automatic Procedure ===
| |
|
| |
| We have a purge.php that not only deletes both thumb and image, but also purges the cloudflare cache.
| |
|
| |
| * Adding users to purge script: sudo htpasswd /etc/nginx/ssl/htpasswd <username>
| |