Skip to content
Free

WP-CLI commands

Check document status, rebuild the PDF search index and clear Foliora's cache from the terminal.

1 min read Updated

On this page

wp foliora status#

How many PDFs have thumbnails, searchable text and accessibility data.

$ wp foliora status
=== Foliora Document Status ===
Total PDF documents:   128
Generated thumbnails:  128 / 128
Indexed for search:    121 / 128
Checked accessibility: 128 / 128 (97 tagged)

wp foliora reindex#

Rebuilds the site-search index of every post and page (published, draft, private or pending) that embeds a PDF with the shortcode or a Foliora block.

$ wp foliora reindex
Reindexing posts embedding PDFs  100% [==========]
Success: Successfully reindexed 42 post(s).

Reindex combines text that is already extracted. Text extraction itself happens in the browser on Docs & Features, so open that screen once after uploading new PDFs.

wp foliora clear_cache#

$ wp foliora clear_cache
Success: Foliora cache cleared.