Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3273188
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:54:20+00:00 2026-05-17T18:54:20+00:00

I have a web application (MainApplication) where many of the pages contain a custom

  • 0

I have a web application (MainApplication) where many of the pages contain a custom Web Control that looks for some content in a cache. If it can’t find any data within the cache, then it goes out to a database for the content. After retrieving the content, the Control displays the content on the page.

There is a web application (CMS) in a subdirectory within the aforementioned web application. Users use this CMS to update the content pulled in by the MainApplication.

When a user updates some content using the CMS, I need the CMS to clear the relevant portion of the cache used by the MainApplication. The problem is that, as two different web applications, they can’t simply interact with the same static cache object.

The ideal solution would be to somehow share an instance of a cache object between both web applications.

Failing that, what would be the best (performance-wise) way of communicating between the two web applications? Obviously, writing/reading to a database would defeat the purpose. I was thinking about a flat file?

Update

Thank you all for your help. Your wonderful answers actually gave me the right search terms to discover that this was a duplicate question (sorry!): Cache invalidation between two web applications

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:54:21+00:00Added an answer on May 17, 2026 at 6:54 pm

    We had the exact same setup in a previous project i worked on, where we had one ASP.NET Web Application (with MCMS Backing), and another ASP.NET Web Application to display data.

    Completely different servers (same domain though).

    However, when a “editor” updated content in the CMS application, the UI was automatically refreshed.

    How? Glad you asked.

    We stored the content in SQL Server, and used Replication. 🙂

    The “frontend” Web Application would read the data from the database (which was replicated by the CMS system).

    Now – we don’t cache this data, because in the database, we actually stored the markup (the HTML) for the control. Therefore we dynamically re-rendered the HTML.

    Why is that “defeating the purpose”?

    You can’t get one application to “invalidate” the cache on another application.

    If you’re going down this path, you need to consider a distributed caching engine (e.g Velocity).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a web application that is generating some 3-5 parallel threads every five
I have a Spring application that publishes some RESTful web services using Apache CXF
I have a web application that allows users to enter search criteria and the
I have a web application that will be used on iPhones, and want to
I have a web application (MVC3) that is an Intranet, Main app. The solution
I have a web application that use Sring IoC framework. I use the Java
I have a web application using two canvases. Today I noticed that one of
I have web application that is behind a proxy. If the user has logged
I have web application in that I have a ajaxTabedinterface. I want open the
I have this web application that has grown to an unmanageable mess. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.