caching

WordPress Write Cache Problem with Multiple Sessions

I'm working on a content dripper custom plugin in WordPress that my client asked me to build. He says he wants it to catch a page view event, and if it's the right time of day (24 hours since last post), to pull from a resource file and output another post. He needed it to also raise a flag and prevent other sessions from firing that sam...

Recommended textbook for machine-level programming?

I'm looking at textbooks for an undergraduate course in machine-level programming. If the perfect book existed, this is what it would look like: Uses examples written in C or assembly language, or both. Covers machine-level operations such as two's-complement integer arithmetic, bitwise operations, and floating-point arithmetic. Expla...

How to remove flash cache on a web site periodically

I'm using a flash rotating banner in my website which takes images and descriptions from an XML file. I do changes to my XML very often... but in my local machine, the banner takes a day or two to get updated. Although I can clear my local machine's cache, the problem still remains for other users who visit my web page.. is there a ...

Extjs cache JSON request

Hi i'm using Extjs and i have built a grid with editable cells. One of this cells must be a combobox that takes its options from a script that generates the json data. The code for the grid and for the combobox-cell-editor works but i want that the json request to the script is cached after the first time, is it possible? I write some c...

How to track when my application has unexpectedly shut down?

I'm writing an application whose purpose involves a lot of logging of different events. Among those I would also like to have an event that the application was shut down - even if unexpectedly like because of a power loss. Naturally, when the power goes out I don't get a chance to write anything anywhere. So my idea was to continuously...

Thread Local Memory, Using std::string's internal buffer for c-style Scratch Memory.

I am using Protocol Buffers and OpensSSL to generate, HMACs and then CBC encrypt the two fields to obfuscate the session cookies -- similar Kerberos tokens. Protocol Buffers' API communicates with std::strings and has a buffer caching mechanism; I exploit the caching mechanism, for successive calls in the the same thread, by placing it...

Set HTTP Caching Expiration, Recommended by Google PageSpeed

I ran tests on my website using Google's PageSpeed and it recommends that I "Leverage browser caching" and provided the following resource: http://code.google.com/speed/page-speed/docs/caching.html#LeverageBrowserCaching This resource never explains how to actually change the expiration date of my http headers. Do I do this through ....

What is the best way to prevent a webpage coded completely in HTML (no PHP or any server side language) from caching?

I thought by placing these two lines that it would prevent the page from being cached but this is not the case between the head tags: <meta http-equiv="pragma" content="no-cache" /> <meta http-equiv="cache-control" content="no-cache" /> As already mentioned this is on server that doesn't support PHP (or any server side language, well,...

What does this random number do: /javascripts/rails.js?1271798101

I think I remember reading that that has to do with telling the browser not to cache it or something. How does this impact browser caching and application performance in production? When does that number change? <script src="/javascripts/rails.js?1271798101" type="text/javascript"></script> ...

How to invalidate cache when benchmarking?

I have this code, that when swapping the order of UsingAs and UsingCast, their performance also swaps. using System; using System.Diagnostics; using System.Linq; using System.IO; class Test { const int Size = 30000000; static void Main() { object[] values = new MemoryStream[Size]; UsingAs(values); ...

Data Access Layer - static list objects and caching

Hello, i am devloping a site using .net MVC i have a data access layer which basically consists of static list objects that are created from data within my database. The method that rebuilds this data first clears all the list objects. Once they are empty it then add the data. Here is an example of one of the lists im using. its a met...

Where should I store a data table [ViewState/ Session/ Cache]

I have a DataTable with about 10,000 rows in it. I would like to store this data once for aspx page. When the user selects different options in the page, data is further selected from the already stored DataTable. I tried using the ViewState, but as soon as the data grows beyond 100 rows, performance degrades. Where should I store th...

Count number of queries executed by NHibernate in a unit test

In some unit/integration tests of the code we wish to check that correct usage of the second level cache is being employed by our code. Based on the code presented by Ayende here: http://ayende.com/Blog/archive/2006/09/07/MeasuringNHibernatesQueriesPerPage.aspx I wrote a simple class for doing just that: public class QueryCounter : I...

How does browser work with expiration headers, cache-control headers, last-modified-header ?

I am a web developer, have worked with PHP and .NET both. having over a year of experience working on web I haven't been able to understand the browser caching features thoroughly, I hope Web Gurus here can help me with it. Questions I have in my mind are : How does browser actually caches stuff, does it request for to see if the cache...

Does the symfony cache file system handle ext2 32000 files in the same directory limitation ?

Does the symfony cache system handle ext2 32000 files in the same directory limitation ? I have 80000 users and i want to cache their profiles but do symfony cache system handle the ext2 limitation ? i'm also posting for the others who will face the same problem. ...

Storing data temporarily

All, I just need some pointers in a problem I have. Basically 100 C++ engine instances write to an SQL Server 2005 and it is creating some problems for us. As we don't really need to write the data in the database at that point we are thinking to stop doing it and use either messaging to send the data to a service for furher processin...

Frameset frame cached by Firefox

Hi, I have a html page which contains nested frameset (don't ask why, I'm only servicing the app ;) ). What bothers me, is why FF caches Header.htm file constantly. I had to use clear cache to force browser to download it again. ctrl+f5 didn't help. <frameset rows="68,*" border="0" frameborder="no" framespacing="0"> <frame name...

absolute expiration cache object - can it be manually removed ?

Hello, been pulling my hair out over this for the past few hours. i have a cache object.. HttpRuntime.Cache.Insert("Members", AllMembersList, null, DateTime.Now.AddHours(1), TimeSpan.Zero); when i try and clear the cache object.. HttpRuntime.Cache.Remove("Members"); its value doesnt change, untill 1 hour is up or when i reset the...

Javascript caching, rails and apache passenger?

Alright all you little geniuses you.. please help. :D I have written a Capistrano recipe to remove the all.js cached javascript file and tell the server to restart, but it still doesn't work right. And inevitably I have to go, manually delete the all.js file and then manually restart apache. (touching restart.txt doesn't always work) A...

Java Applet not caching

Hello world, I'm having a problem with a Java applet I've deployed that is refusing to be cached in the jvm's "sticky" cache (or by the browser). For some reason every time a user loads the page this applet is on, the jvm re-downloads the jar file from the server which causes a long delay. The webpage containing the applet is being acc...