Skip to content

Pr00xxy/pfpcw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PFPCW

Python Full Page Cache Warmer

Description

Python cache warming tool used for warming full page cache solutions by visting pages in sitemap.xml

Has built-in support for concurrent threads, randomizing sort order, url parse delay, and more.

Tests has been performed on Wordpress, Magento 1 and 2.

Installation

Step 1. Prerequisites

python3

pip3 install -r requirements.txt

Parameters and flags

  • --sitemap Url to sitemap (Exclusive to --site)
  • --site Url to site (Exclusive to --sitemap) Will try to locate robots.txt for any sitemaps and parse found ones
  • --delay Delay in seconds between url warming (Default: 0)
  • --limit Limit of urls to scan. (Default: None)
  • --threads Number of concurrent threads to use (Default: 1)
  • -r Randomize order of url warming. (Default: False)
  • -v Run in verbose mode. Will print output to terminal
  • -s Run in silent mode. Redirects all output to /dev/null

Usage

./pfpcw ( --site <url> | --sitemap <url to sitemap.xml> ) [--threads <int>] [--delay <int>] [--limit <int>] [-v] [-s] [-r]