Wordpress LScache Plugin: Purging behaviour with CPTs
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi team, Thanks for an amazing plugin. What is the intended behaviour with custom post types? When they are created, edited, auto-saved, deleted, etc., is Litespeed by default doing a purge of any kind? I dont see any options under Cache > Purge to do a purge when Posts are published or when Custom Post Types are published. What I see are options that pertain to pages and archive pages for posts. https://ibb.co/sPD2Zm4 The options suggest that when a post is published, no purge is completed. Regarding custom post types, lets take for example Boxzilla popups. Their custom post type is boxzilla-box. When I update a Boxzilla popup, I dont see Litespeed perform a cache by default. The same when I create a new Boxzilla popup. Is this intended behaviour? I came up with a plugin that manually hooks into the Boxzilla edits and purges LS, but this seems odd to have to resort to this? function do_purge() //do_action(purge_all) if ( defined( LSCWP_V ) ) do_action( litespeed_purge_all ) // Purge the LiteSpeed cache // Add support for Boxilla CPT edits purging cache add_action( save_post_boxzilla-box, do_purge ) I guess I could have just added save_post_boxzilla-box to the list of Purge All Hooks . But either way, is it right that Litespeed doesnt automatically purge when CPTs are modified? Isnt this a normal use case that Litespeed would want/need to purge for? Thanks. Hi, Is this intended behaviour? is it right that Litespeed doesnt automatically purge when CPTs are modified? yes , its not exactly as intended , but its default behavior because when you do something that changes page content , you need to let LSCWP know about it thus to purge it for default WP built-in post type, we have detection for auto-purge , but for custom post type , as you can imagine , there could be millions different of them , there is no way for us to get them all this seems odd to have to resort to this? well , not entirely , if its not natively supported , we have to do it this way Best regards, Thanksm, @CacheCrawler! What is auto-purge and how can we inform other plugin developers to support this? Thanks. Hi, auto-purge is just like automatically purge when you edit/publish a post you can ask other plugin dev to add if ( defined( LSCWP_V ) ) do_action( litespeed_purge_all ) // Purge the LiteSpeed cache on their saving action Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference