Changes between Initial Version and Version 1 of WebCache


Ignore:
Timestamp:
Apr 25, 2007, 10:40:34 AM (17 years ago)
Author:
Nicolas
Comment:

Converted by an automatic script

Legend:

Unmodified
Added
Removed
Modified
  • WebCache

    v1 v1  
     1= Web page caching =
     2
     3      Some pages on your project's web site are accessed often and require lots of database access to generate. To keep this from bogging down your server, BOINC caches these pages. This cache is in PROJECT/html/cache/*; a one-level hashed directory hierarchy is used to deal with large-directory performance problems.
     4== Caching configuration ==
     5 The file html/project/cache_parameters.inc contains a number of parameters related to caching:
     6
     7
     8
     9 '''TEAM_PAGE_TTL'''::
     10        Cache life of team pages; default 1 hour
     11 '''USER_PAGE_TTL'''::
     12        Cache life of user pages; default 1 hour
     13 '''USER_HOST_TTL'''::
     14        Cache life of user host list; default 1 hour
     15 '''USER_PROFILE_TTL'''::
     16        Cache life of profiles; default 1 hour
     17 '''TOP_PAGES_TTL'''::
     18        Cache life of user/team/host lists; default 12 hours
     19 '''INDEX_PAGE_TTL'''::
     20        Cache life of main page; default 1 hour
     21 '''MAX_CACHE_USAGE'''::
     22        Max cache size; default 100 MB
     23 '''MIN_FREE_SPACE'''::
     24        Min free space on device; default 100 MB
     25 '''CACHE_SIZE_CHECK_FREQ'''::
     26        Check cache size on every N user accesses to cached pages; default 1000
     27
     28
     29
     30== Caching and translation ==
     31 BOINC uses several web-page caching systems, which support language translation in different ways.
     32 * '''Pre-generated''': Pages are updated from time to time, and do not support translation. The system used for building profiles is a pre-generated cache.
     33 * '''Fullpage cache''': This cache system simply takes the output of a page and saves it for the future. It uses the start_cache() and end_cache() functions in cache.inc. The pages may not be translation-aware (otherwise some users will see the wrong language).
     34 * '''Fullpage cache with translation''': You can make the language part of the cache filename. (To do this, you need to adapt the code in cache.inc). This can be inefficient because it stores a separate copy of the page for each language.
     35 * '''Object cache''': This stores the data used to create the page and recreates the page every time (using any language you'd like). Use get_cached_data() in cache.inc. This is perfect for pages that are accessed commonly and by people from many nationalities (currently the top-X pages support it).
     36
     37If something shows up in the wrong language it's probably because a page that was previously not being translated got translation abilities but wasn't moved to the proper cache type. Also if a page-piece that is included is now translatable, all pages that make use of this piece should now either use fullpage caching with translation, or use an object cache (nicer but takes a few more lines of coding).
     38