Skip to main content

Joel Liu's Library tagged cache   View Popular

02 Sep 09

Green Felt News » How we hash our Javascript for better caching and less breakage on updates

  • Everything is cached so it only does the minification and hash calculations once per file. We’re obviously running FastCGI so the in memory cache goes across http requests. More importantly the js/ dir is statically served by the web server so it’s exactly as fast as it was before we did this (since we served the .js files without any preprocessing). All this technique adds is a couple filesystem stats per page load, which isn’t much.
15 Mar 06

MySQL's Query Cache

  • Note that
    these are results from MySQL 4.0.x - you'll see more in versions 4.1.x and
    beyond. The query_cache_type will be set to ON or OFF as appropriate. However,
    there is one more to set, and that is the query_cache_size. If set to 0
    (the default), the cache will be disabled. This variable determines the memory,
    in bytes, used for the query cache. For our purposes, we will set it to 20 MB:
  • To make sure MySQL uses
    the query cache, there are a few variables you need to set in the configuration
    file (usually my.cnf or my.ini). First, is the query_cache_type. There
    are three possible settings: 0 (for off, do not use), 1 (for on, cache queries)
    and 2 (on demand, discussed more below). To ensure it is always on, place:
02 Mar 06

Caching Tutorial for Web Authors and Webmasters

  • The fact is that proxy and browser caches will be used whether you like it
    or not. If you don’t configure your site to be cached correctly, it will be
    cached using whatever defaults the cache’s administrator decides upon.
1 - 6 of 6
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo