Welcome To Snipplr


Everyone's Recent Snippets Tagged cache



« Prev 1 2 3
  1. FAV

    lastModified.func.php

    With this snippet you will have the ability to deliver the most recent version of any file. When dealing with a browser's cache you can't be certain your viewers are getting the most recent copy. By appending a GET value (the UNIX timestamp) to, f...
    PHP 19 views posted 4 months ago by daemondevin
  2. FAV

    Clear buffer cache on GNU/Linux systems

    Clear buffer cache on GNU/Linux systems
    Bash 3 views posted 3 years ago by rm1984
  3. FAV

    PHP website accelerator - Cloudflare-style full page caching with page rules in 1 PHP file

    # Slick.php PHP full page cache with Cloudflare-style page rules. No DNS changes required, just upload the PHP file, configure and then include from your main application controller (e.g. index.php
    PHP 1 views posted 3 years ago by mattnicholson
  4. FAV

    Simple PHP cache technique

    This is a little code snippet that I use in almost every project that isn’t based on a popular CMS. Since its fairly expensive to hit the database on every page load, its a smart idea to cache the plain HTML markup of your page and serve that up. Y...
    PHP 5 views posted 4 years ago by a1ias
  5. FAV

    A light implementation of Session table in Mysql 5.6 using memory engine

    caching session variables in Mysql using memory engine for fast client response. note: please test before use, then use at your own risk.
    SQL 3 views posted 5 years ago by prgrmmraben
  6. FAV

    Luminate: Disable file caching

    Add the following parameter to any file URL & it will be unique each time, preventing the cached version from showing
    HTML 1 views posted 6 years ago by makbeta
  7. FAV

    Callback for when images have loaded in an AJAX call

    More info: http://stackoverflow.com/questions/10908562/is-there-something-similar-to-window-load-for-executing-a-function-after
    JavaScript 5 views posted 6 years ago by rickygri
  8. FAV

    Simple PHP cache class

    A simple class to cache files (or other results) with PHP.
    PHP saved by 4 people 10 views posted 7 years ago by peckham
  9. FAV

    Query posts and cache the query

    Snippet to show a simple use of the transient API when querying posts.
    PHP 5 views posted 7 years ago by Mat_
  10. FAV

    No Cache HTTP Headers

    HTTP headers to disable caching.
    PHP saved by 4 people 3 views posted 7 years ago by ryantxr
  11. FAV

    Base display function to use Joomla! cache

    This is a base function to use with Joomla! to display the view using the Joomla cache system.
    PHP 4 views posted 7 years ago by kevincam
  12. FAV

    AS3 - Cached image from URL

    Retrieve remote image from an URL and store it locally. Use this class for managing offline mode.
    ActionScript 3 saved by 4 people 12 views posted 8 years ago by spawnrider
  13. FAV

    Simplepie with fixed Cache directory handling

    Simplepie per default uses relative paths to generate the cache filename. Whenever I use Simplepie I run into the same problem, that the cache directory can't be located. This is why I modify the file everytime. Here's my version (with a hardcoded p...
    PHP 0 views posted 8 years ago by iroybot
  14. FAV

    htaccess site caching

    Apache saved by 2 people 3 views posted 8 years ago by czachor
  15. FAV

    Simple PHP Page Caching Technique

    PHP 4 views posted 8 years ago by Abe
  16. FAV

    Cache favicon from google service

    PHP 1 views posted 8 years ago by szpunk
  17. FAV

    Htaccess Speed Boost

    Apache 6 views posted 8 years ago by justinscheetz
  18. FAV

    NodeJS header cache control

    JavaScript 2 views posted 8 years ago by rod
  19. FAV

    ART: Personal Internet Cache Archive

    Inspired: http://evan-roth.com/personal-internet-cache-archive/ In the "style=" you can adjust the "height: ??px" according to the quantity of items in your cache.
    Bash 1 views posted 8 years ago by valessiobrito
  20. FAV

    Wordpress: Cache your $wpdb queries

    Cache the results of your wordpress database queries for faster page generation
    PHP 0 views posted 8 years ago by prwhitehead
  21. FAV

    Cache AJAX Response

    Basically, if the value has already been requested once before it's returned immediately from the cache. Otherwise, an AJAX request fetches the data and adds it to the cache. The $.when/.then doesn't care about any of this; all you need to be concern...
    jQuery 1 views posted 8 years ago by crypticsoft
  22. FAV

    Javascript epoch time

    returns the number of seconds since 1 jan 1970 This is useful for generating a number in a url to stop a page from caching
    JavaScript saved by 2 people 0 views posted 8 years ago by samwa
  23. FAV

    Application cache loading status reporter for HTML5 / Javascript

    JavaScript 4 views posted 8 years ago by miohtama
  24. FAV

    Disable browser cache

    PHP saved by 3 people 1 views posted 9 years ago by mfigge
  25. FAV

    jQuery.getScript() does not cache – Jamie Thompson

    Cache control when pulling in scripts, redefined "getScript" function
    jQuery 0 views posted 9 years ago by lamebollock
  26. FAV

    cache control with file modification date

    PHP saved by 2 people 3 views posted 9 years ago by ashsa
  27. FAV

    RealUrl Cache löschen

    write into localconf.php
    TYPO3 0 views posted 9 years ago by troi
  28. FAV

    Prevent Web Page from Expiring

    I use the following code to prevent a user from getting a "webpage expired" message when hitting the back button on a page where the search results are also on the page with the form.
    PHP 2 views posted 9 years ago by bradless
  29. FAV

    Simple load manager with cache

    Simple manager that loads display objects via single method call and caches loaded objects
    ActionScript 3 2 views posted 9 years ago by kuril
  30. FAV

    https+ieX+downloads

    Donwloads weren't working with https + ie6/ie7. This line solves the problem (order is important, **no-store** must be first).
    PHP 1 views posted 9 years ago by ashsa
« Prev 1 2 3