How ghost handles pagination when we publish a post?

If you publish a post does ghost triggers a rebuild of pages associate with pagination and tags.

Assuming you’re talking about the ghost-provided frontend, the pages are built on-the-fly, so yes.

So when I hit the request the server starts working and resolving templates to html files. Is there some sort of caching in place for performance concerns