Lines Matching full:cache
3 // Note that REAL cache should check for Last-Modified HTTP header at least;
5 // and curl extension is very rare, this implementation of cache is very simple.
6 // Cache is cleared after the script finishes it work!
12 // containing all cached objects; note that cache consumes memory!
118 // We cannot use the $url as an cache image name as it could be longer than
125 // Checks if cache directory is available
129 // image cache directory cannot be created or accessed
134 … // Cache directory does not exists; try to create it (with read/write rightss for the owner only)
136 if (!mkdir(CACHE_DIR, 0700)) { die("Cache directory cannot be created"); }
154 // omg. Cache directory exists, but useless
156 die("Check cache directory permissions; cannot either read or write to directory cache");
162 // Clears the image cache (as we're neither implemented checking of Last-Modified HTTP header nor
163 // provided the means of limiting the cache size