wp-super-cache, reload from php
Is it possible to reload (or delete) the wp-super-cache from a php script? Is there a specific function for that? ...
Is it possible to reload (or delete) the wp-super-cache from a php script? Is there a specific function for that? ...
Basically for a plugin for a dynamic site (site can be fairly large) I am caching results of some sort of search (because results are from an external search), the results can be 400-1500 characters in length. As the results come in an array, I use json_encode (faster than serialize) to store in the database, but ~1.5KB per entry (since...
Does someone knows a library for in-process caching, other than MS ASP.NET cache and ENTLib, with at least two features: - expiring time; - object dependency. ...
Hi all, I am currently caching my web application. So I was driving to use memcache and i was looking for an easy way to handle all that. For exemple, i would like to cache all my contents until they are not modified. And I can't cache all the page because some parts need to be cached apart. So I could use a fragment_cache for the c...
What an awkwardly worded question, you're thinking? When my application loads, it goes to the database and gets several different lookup tables worth of data and creates .NET Lists for each one and puts them in cache. For example, "Status". List at this point: On, Off When I retrieve the List of Statuses from the cache, I add another...
I have a single huge minified JavaScript file (ditto for CSS). I am looking for some optimization in terms of speed of download and caching. I want to set the expiry headers for both these files such that with only 2 HTTP calls I get them (and until I change their version number in the URL) want them to be cached. My question is - Whe...
Hi Friends, I'm developing an web application with asp.net mvc 2, and I'm using NHibernate (session per request) and Unity (for dependency injection). In my Global.asax I'm managing my ISession something like this: public override void Init() { base.Init(); BeginRequest += OpenNHibernateSession; EndRequest += DisposeNHiber...
I am configuring my hibernate project to use a 2nd-level cache provider, so that I can take advantage of query caching. I added a dependency to ehcache: <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache-core</artifactId> <version>2.2.0</version> </dependency> I think that the provider class I want t...
Hello there, this might be a more general question, not just Rails related. I'm about to start working on an application that will need to employ some kind of caching strategy sooner or later. How to approach caching when programming a web application? Should I think it through up front or is it a matter of a later decisions? And then...
Hi guys, I'm setting the headers for a web page to CacheControlMaxAge 900 secs. This works well with Akamai and all the browsers ignore this setting except IE which caches the page for 9 minutes. What I want is to have only Akamai cache the page for 9 minutes and no caching done by the browser (IE this is the one we have troubles with)...
Hi all, Is there a way to cache results of a mysql query manually to a txt file? Ex: $a=1; $b=9; $c=0; $cache_filename = 'cached_results/'.md5("$a,$b,$c").'.txt'; if(!file_exists($cache_filename)){ $result = mysql_query("SELECT * FROM abc,def WHERE a=$a AND b=$b AND c=$c"); while($row = mysql_fetch_array($result)){ ech...
Hi there. At work, we've recently started designing an application to me "large scale" (we're engineering for the potential to serve up many millions of hits a day). One of the senior devs and the sysadmin have set up memcache on the server. As I understand it, Memcache will hold query results and certain tables in memory for X am...
Is it possible to still use the geolocation features when you are in offline mode in HTML5? It appears that when I am online (navigator.onLine = true), the geolocation works fine. But when I go offline (navigator.onLine = false), I get thrown to my error callback and the error indicates geolocation not available. ...
Precondition: There's a web application that leverages ASP.NET security model. There's also an Active Directory (AD) integration component. It provides AD users and roles as if those are application's own users and roles. The relations like "is in role" between AD user and AD role are stored in AD domain, of course, but are cached by the...
I'm developing a website on EC2 and have the development and live site hosted on the same server (for $'s sake). What I'm encountering is caching conflicts. Specifically on the dev site I have things that are not intended to be seen by the public yet but because it seems that both sites are using the same APC cache the entries are confl...
i use var $cacheAction = '1 hour'; cakephp create file xxx_view_1245.php in cache/views/ , it cached. but if i use var $cacheAction = array( 'view/' => '1 hour' ); cakephp dont cache, i dont know why , please help me ...
I know that l1 and l2 caches are levels in multi-level cache. I would like to know where each level cache is placed, and what is the maximum number of cache levels allowed? ...
I'm trying to build a process that will repopulate an item that was inserted into cache every 30 minutes. I inserted the item into Cached to expire after 30 minutes. I setup a delegate (http://msdn.microsoft.com/en-us/library/system.web.caching.cacheitemremovedcallback(v=VS.90).aspx) to be called when the cached item expired. My goal was...
I'm setting up cacheing for a CakePHP application and having a really hard time getting it to talk to Memcache. I've written the caching code while testing against the File based caching engine, and all the logic is solid. When I watch debug traffic, caches hit, miss, and expire properly. I wanted to switch over to Memcache because the ...
I have an ASP.Net site (happens to be MVC, but that's not relevant here) with a few pages I'd like cached really well. Specifically I'd like to achieve: output cached on the server for 2 hours. if the file content on the server changes, that output cache should be flushed for that page cached in the browser for 10 minutes (i.e. don't...