Friday, August 2, 2013

NetScaler Integrated Cache Not Expiring

Recently, we were attempting to publish updates to one of our domains in order to update one of the css files. This problem could happen with any file/site that the NetScaler caches in the Integrated Caching. After completing the publish, we tested to make sure that the updates took effect but they had not. The website was not showing any of the styles that we were applying through the master style sheet. We cleared the client cache as well as the server cache. This lead us to the NetScaler (NS) that we use to load balance our website.

We verified that the server was not being hit when calling the master style sheet, proving that the NS was caching the style sheet. I do not have much experience with caching on the NS so I had to do some digging.

The resolution was to flush the NS's cache of the master style sheet because it had an old version that was not expiring.

Steps to resolve:

  1. Log into the NS.
  2. Open the Integrated Caching feature.
  3. Choose the Cache Objects.
  4. Find the file that is not being updated when you makes changes. 
    1. You can use the find to narrow down the selections. I was looking specifically for a .css cached object.
  5. Flush or expire the cached object that is causing problems.
  6. Attempt to contact the resource that was originally not working and verify that the cache is now updated.

No comments:

Post a Comment