added invalidation of cached data in generate_post_snippets command