Welcome To Snipplr


Everyone's Recent Snippets Tagged cache



« Prev 1 2 3
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...
0 14003 posted 5 years ago by daemondevin
Clear buffer cache on GNU/Linux systems
0 2023 posted 8 years ago by rm1984
# 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
0 2273 posted 8 years ago by mattnicholson
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...
0 1534 posted 10 years ago by a1ias
caching session variables in Mysql using memory engine for fast client response. note: please test before use, then use at your own risk.
0 2037 posted 10 years ago by prgrmmraben
More info: http://stackoverflow.com/questions/10908562/is-there-something-similar-to-window-load-for-executing-a-function-after
0 1494 posted 12 years ago by rickygri
A simple class to cache files (or other results) with PHP.
1 1660 posted 12 years ago by peckham
Snippet to show a simple use of the transient API when querying posts.
0 1181 posted 12 years ago by Mat_
HTTP headers to disable caching.
1 1498 posted 13 years ago by ryantxr
This is a base function to use with Joomla! to display the view using the Joomla cache system.
0 1424 posted 13 years ago by kevincam
Retrieve remote image from an URL and store it locally. Use this class for managing offline mode.
2 2457 posted 13 years ago by spawnrider
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...
0 1497 posted 13 years ago by iroybot
1 1774 posted 13 years ago by czachor
0 1452 posted 13 years ago by szpunk
0 1367 posted 13 years ago by justinscheetz
0 1387 posted 14 years ago by rod
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.
0 1139 posted 14 years ago by valessiobrito
Cache the results of your wordpress database queries for faster page generation
0 1503 posted 14 years ago by prwhitehead
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...
0 1369 posted 14 years ago by crypticsoft
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
1 1401 posted 14 years ago by samwa
1 1574 posted 14 years ago by mfigge
Cache control when pulling in scripts, redefined "getScript" function
0 1226 posted 14 years ago by lamebollock
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.
0 1354 posted 14 years ago by bradless
Simple manager that loads display objects via single method call and caches loaded objects
0 1429 posted 14 years ago by kuril
Donwloads weren't working with https + ie6/ie7. This line solves the problem (order is important, **no-store** must be first).
0 1152 posted 14 years ago by ashsa
Great for just about any kind of key/value in-memory caching... scales up to the limitations of the JVM, so it's about as good as it gets without clustering.
1 1200 posted 14 years ago by kubaitis
1 1585 posted 14 years ago by iloveitaly
0 1318 posted 14 years ago by traeregan
« Prev 1 2 3