Repository navigation
Releases
Releases · RustyRoger/cosmic-cache
v1.1.4
Fixed
- Static posts page (
page_for_posts) never purged: with a static front
page, publishing a post invalidated onlyhome_url('/')— never the actual
article listing.post_urls()now includes the posts page with its pretty
(/page/N/) and query (?paged=N) pagination variants. - Scheduled (WP-Cron) publishing never purged:
future → publishfires no
save_post, only the status transition, which was handled for unpublishing
only.transition_post_statusnow purges in both directions, with
future_to_publish/publish_future_postas a cron-safety net. - Pretty pagination siblings left stale: each
/page/N/(and
/comment-page-N/) is a separate cache file;purge_url()now expands them
for any purged URL, so manual/CLI purges cover pagination too. - Custom taxonomies and CPT archives: invalidation looped only over
category/post_tagand never purged the post-type archive; it now covers
every taxonomy of the post type plusget_post_type_archive_link(). - Reading-settings and Customizer changes:
show_on_front/
page_on_front/page_for_posts/sticky_postsand
customize_save_after(which previously never purged) now trigger a full
purge; media edits (edit_attachment) invalidate the parent post.
8 new unit tests; PHPStan/PHPCS green.