Skip to content

Instantly share code, notes, and snippets.

View MarcoMiltenburg's full-sized avatar

Marco Miltenburg MarcoMiltenburg

View GitHub Profile
    use phpFastCache\CacheManager;

    $cache = CacheManager::Memcached();

    $keyword_webpage = md5($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].$_SERVER['QUERY_STRING']);
    // try to get from Cache first.
    $resultsItem = $cache->getItem($keyword_webpage)

 if(!$resultsItem->isHit()) {