[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-489369-105":59,"doc-detail-489369-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","template-based-runtime-invalidation-for-database-generated-web-contents","Template-Based Runtime Invalidation for Database-Generated Web Contents","","Template-Based Runtime Invalidation proposes a template-aware mechanism to keep cache contents consistent for database-generated web pages. An invalidator is placed between the web cache and the database server, transparently intercepting query and update statements, maintaining query/update templates, and linking URLs to SQL. At runtime, it matches update statements against cached query-derived HTML fragments using an extended satisfiability testing algorithm, avoiding backend polling while reducing invalidation cost via template semantic information. Integrated with Oracle Web Cache and evaluated on TPC-W.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/template-based-runtime-invalidation-for-database-generated-web-contents/489369/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/template-based-runtime-invalidation-for-database-generated-web-contents/489369.png","ImageObject",300,407,{"name":92,"@type":93},"Margaret","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-23","2026-10-01",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does the template-based runtime invalidation approach address?","Question",{"text":112,"@type":113},"It maintains consistency between frequently changing database content and cached, database-generated web contents, preventing cached HTML fragments from becoming obsolete.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the invalidator work at runtime?",{"text":117,"@type":113},"It sits between the web cache and database server, intercepts SQL update and query statements, checks whether updates invalidate cached query-derived HTML fragments, and decides invalidation using an extended satisfiability testing algorithm.",{"name":119,"@type":110,"acceptedAnswer":120},"Why does the approach avoid polling queries to the backend database?",{"text":121,"@type":113},"It determines cache validity from the texts of instantiated statements through satisfiability testing, eliminating backend polling and simplifying the invalidator’s processing.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},489369,1792854874,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":29,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},137451207643,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","Template-Based Runtime Invalidation for Database-Generated Web Contents  \nChun Yi Choi Qiong Luo  \nDepartment of Computer Science  \nHongKong University of Science and Technology  \nClear Water Bay, Kowloon, HongKong  \n{stefan, [luo}@cs.ust.hk](luo}@cs.ust.hk)  \nAbstract  \nWe propose a template-based runtime invalidation approach for maintaining cache consistency in database-generated web contents. In our approach, the invalidator sits between a web cache and a database server and intercepts the query statements as well as the update statements transparently. Moreover, it maintains templates for queries and updates, as well asa mapping between URLs and SQL queries. At runtime, the invalidator checks an update statement against the query statements, whose corresponding HTML fragments have been cached, and decides on if any cached HTML fragments should be invalidated based on an extended satisfiability testing algorithm without sending any polling queries to the backend database. We further improve the efficiency of this checking process by utilizing the semantic information of the templates. We have integrated our invalidator with the Oracle Web Cache and have conducted extensive experiments using the TPC-W benchmark. Our results show that this approach efficiently maintains the consistency of cached HTML fragments with the backend database.  \n1. Introduction  \nLarge e-commerce sites typically serve many users concurrently with web contents dynamically generated from a backend database. Caching these web contents has been the main solution to scalability and performance problems faced by the e-commerce sites. However, these cached web contents may become  \nobsolete within a short period of time, because their corresponding database contents are constantly changing due to ongoing transactions. Since users usually desire to see up-to-date web contents in their browsing and shopping activities, it is crucial to maintain consistency between the database contents and the cached web contents.  \nDespite previous research efforts [7, 8, 10], cache consistency remains a challenging problem for databasebacked web sites. A major cause is that the sites require several pieces of complicated software – the web server (with a web cache), the application server, the database server, and server-side applications. Moreover, these components speak different languages and run independently from one another. In this paper, we take a holistic approach to address the problem, aiming at making our approach generally applicable to a wide range of applications. Our goal in this work is to invalidate outdated database-generated web contents automatically without putting any extra workload onto  \nthe backend database. Figure 1 shows our invalidator ina database-backed web site.  \nBrowser  \n| Web Cache Web Server Application App . Server Invalidator\u003Cbr>|  | DB Server\u003Cbr>|\n| --- | --- | --- |\n|  | JDBC |  |\n\nFigure 1. The invalidator in a database-backed web site Our key observation in this work is that both SQL queries and web pages generated from database-backed web sites have templates. Specifically, server-side applications such as Java servlets, Java Server Pages, Active Server Pages, and Enterprise Java Beans are programmed to contain parameterized SQL statements (both queries and updates) as well as parameterized HTML fragments. Moreover, these parameterized statements and fragments remain visible at application development time, deployment time, or even runtime.  \nConsequently, it is possible to know a priori the expected templates as well as the mapping between the HTML fragments and the SQL statements in an application.  \nThe templates and mapping information reveal the SQL semantics of database-generated HTML fragments, which enables us to connect consistency maintenance of the cached web content with database operations. Subsequently, we need to know the database operations at runtime in order to perform the consistency maintenance of the web con","cbCaie437C8lGxYL","https://ap.wps.com/l/cbCaie437C8lGxYL","pdf",125328,22,"English","# Introduction\n## Cache consistency challenge in database-backed web sites\n## Key observation: template-based SQL and HTML fragments\n## Interception strategy at the JDBC interface\n## Invalidation vs. update propagation\n## Avoiding polling via satisfiability testing","[{\"question\":\"What problem does the template-based runtime invalidation approach address?\",\"answer\":\"It maintains consistency between frequently changing database content and cached, database-generated web contents, preventing cached HTML fragments from becoming obsolete.\"},{\"question\":\"How does the invalidator work at runtime?\",\"answer\":\"It sits between the web cache and database server, intercepts SQL update and query statements, checks whether updates invalidate cached query-derived HTML fragments, and decides invalidation using an extended satisfiability testing algorithm.\"},{\"question\":\"Why does the approach avoid polling queries to the backend database?\",\"answer\":\"It determines cache validity from the texts of instantiated statements through satisfiability testing, eliminating backend polling and simplifying the invalidator’s processing.\"}]","Template-Based Runtime Invalidation for Database-Generated Web Contents | PDF",1790822468,55,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5a67a9323c0eba8c1001250f71c6da68.webp",983,1390,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/ee06d84b06c06e685c7a3b9d24f1f989.webp",982,1389,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/a9675456e37b6a2fdb3efb0459c46fe3.webp",981,1387,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/e1b2ddafa959a5088b91706a7d9fcc9a.webp",980,1386]