Menu

#3 Make Caching site specific property

closed
EJP
None
5
2021-07-15
2004-09-08
Dmitri
No

Although no caching while spidering is probably the
best, sometimes it is preferred to use cache. I
suggest making cache site configuration parameter.
Attached you will find 5 files implementing this feature.
By default cache is DISABLED and cache param set to
no-cache, but it can be enabled per-site.

Discussion

  • Dmitri

    Dmitri - 2004-09-08
     
  • Dmitri

    Dmitri - 2004-09-08
     
  • Dmitri

    Dmitri - 2004-09-08
     
  • Dmitri

    Dmitri - 2004-09-08
     
  • Dmitri

    Dmitri - 2004-09-08
     
  • EJP

    EJP - 2021-07-15
    • status: open --> accepted
    • assigned_to: EJP
    • Group: --> Next Release (example)
     
  • EJP

    EJP - 2021-07-15

    This patch also requires adding the following to SpiderContextImpl.registerNewSite(), after all the other 'sitei' configurations:

        sitei.setCacheControl(siteProps.getString(ConfigConstants.SITE_CACHE_CONTROL, Constants.CACHE_CONTROL));
        sitei.setUseCache(siteProps.getBoolean(ConfigConstants.SITE_CACHE_USE, false));
    
     
  • EJP

    EJP - 2021-07-15
    • status: accepted --> closed
     
  • EJP

    EJP - 2021-07-15

    This patch also requires adding the following to SpiderContextImpl.registerNewSite(), after all the other 'sitei' configurations:

        sitei.setCacheControl(siteProps.getString(ConfigConstants.SITE_CACHE_CONTROL, Constants.CACHE_CONTROL));
        sitei.setUseCache(siteProps.getBoolean(ConfigConstants.SITE_CACHE_USE, false));
    
     

Log in to post a comment.