Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've been thinking along similar lines for my project and the issue i'm running into conceptually is tracking WHICH cache records to invalidate upon POST. Say an HTML list, an HTML detail page, and a full composite object all contain references to the particular item you updated. Single items - the detail page and object are fairly easy to know about, but what about a list view and a grid view that also contain that item. What are your thoughts?


A dependency graph between database tables and pages, no? How to define 'page' depends on the rest of the application, I guess in most frameworks it would be 'module' + 'action'.


My thoughts were to borrow a page from wikis and make links between documents a part of the model.

For actual documents (blog posts, comments etc) I'd place them on disk. Metadata, including links between pages, would be in the database.

With Postgres triggers + NOTIFY you can cause invalidation based on INSERTs and UPDATEs.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: