Revision: 14294
Author: adrian.chadd
Date: Tue Sep  8 03:40:58 2009
Log: Issue 57 - add "ignore-no-store" option to refresh patterns


http://code.google.com/p/lusca-cache/source/detail?r=14294

Modified:
  /branches/LUSCA_HEAD/src/cache_cf.c
  /branches/LUSCA_HEAD/src/cf.data.pre
  /branches/LUSCA_HEAD/src/http.c
  /branches/LUSCA_HEAD/src/structs.h

=======================================
--- /branches/LUSCA_HEAD/src/cache_cf.c Sun Jul 26 21:46:32 2009
+++ /branches/LUSCA_HEAD/src/cache_cf.c Tue Sep  8 03:40:58 2009
@@ -2262,6 +2262,8 @@
            storeAppendPrintf(entry, " ignore-reload");
        if (head->flags.ignore_no_cache)
            storeAppendPrintf(entry, " ignore-no-cache");
+       if (head->flags.ignore_no_store)
+           storeAppendPrintf(entry, " ignore-no-store");
        if (head->flags.ignore_private)
            storeAppendPrintf(entry, " ignore-private");
        if (head->flags.ignore_auth)
@@ -2294,6 +2296,7 @@
      int reload_into_ims = 0;
      int ignore_reload = 0;
      int ignore_no_cache = 0;
+    int ignore_no_store = 0;
      int ignore_private = 0;
      int ignore_auth = 0;
  #endif
@@ -2333,6 +2336,8 @@
            override_lastmod = 1;
        else if (!strcmp(token, "ignore-no-cache"))
            ignore_no_cache = 1;
+       else if (!strcmp(token, "ignore-no-store"))
+           ignore_no_store = 1;
        else if (!strcmp(token, "ignore-private"))
            ignore_private = 1;
        else if (!strcmp(token, "ignore-auth"))
@@ -2390,6 +2395,8 @@
        t->flags.ignore_reload = 1;
      if (ignore_no_cache)
        t->flags.ignore_no_cache = 1;
+    if (ignore_no_store)
+       t->flags.ignore_no_store = 1;
      if (ignore_private)
        t->flags.ignore_private = 1;
      if (ignore_auth)
=======================================
--- /branches/LUSCA_HEAD/src/cf.data.pre        Sun Jul 26 21:46:32 2009
+++ /branches/LUSCA_HEAD/src/cf.data.pre        Tue Sep  8 03:40:58 2009
@@ -3101,6 +3101,7 @@
                 reload-into-ims
                 ignore-reload
                 ignore-no-cache
+                ignore-no-store
                 ignore-private
                 ignore-auth
                 stale-while-revalidate=NN
=======================================
--- /branches/LUSCA_HEAD/src/http.c     Sun Aug  9 22:40:20 2009
+++ /branches/LUSCA_HEAD/src/http.c     Tue Sep  8 03:40:58 2009
@@ -291,7 +291,7 @@
        return 0;
      if (EBIT_TEST(cc_mask, CC_NO_CACHE)  
&& !REFRESH_OVERRIDE(ignore_no_cache))
        return 0;
-    if (EBIT_TEST(cc_mask, CC_NO_STORE))
+    if (EBIT_TEST(cc_mask, CC_NO_STORE)  
&& !REFRESH_OVERRIDE(ignore_no_store))
        return 0;
      if (httpState->request->flags.auth_sent) {
        /*
=======================================
--- /branches/LUSCA_HEAD/src/structs.h  Tue Aug  4 08:00:11 2009
+++ /branches/LUSCA_HEAD/src/structs.h  Tue Sep  8 03:40:58 2009
@@ -1749,6 +1749,7 @@
        unsigned int reload_into_ims:1;
        unsigned int ignore_reload:1;
        unsigned int ignore_no_cache:1;
+        unsigned int ignore_no_store:1;
        unsigned int ignore_private:1;
        unsigned int ignore_auth:1;
  #endif

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to