How can I make a PHP script cache-friendly to our private reverse proxy (Squid)?
I would like it to stay cached for the rest of the day. In other words, the page's last modification is 00:00 today and it will expire at 00:00 tomorrow.
What are the minimum required HTTP headers to do this reliably?
EDIT: I do not want the client's bro...
I'm using APC to cache user variables (with the apc_store/apc_fetch commands). I've also enabled APC for the CLI with the option "apc.enable_cli = 1". However, the CLI version of PHP seems to access a different APC cache from the version used by Apache.
Is it possible to configure APC to use the same cache for both CLI and web invocati...
If I have a page with outputcaching (let's call it Employees.aspx) which accepts one parameter (through querystring) called Company like this:
http://www.example.com/Employees.aspx?Company=Google
How can I avoid duplicate page cache entries for differently cased URLs like:
http://www.example.com/Employees.aspx?Company=GOOGLE
http:/...
For some magical reason ii6 started to cache pages on the server. Even if I remove the page, it is still displayed. I tried to follow couple suggestions but no luck.
That's what I did so far:
Deleted \WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files
Unchecked 'cache ISAPI extensions' in the IIS configuration.
Added...
Looking at implementing caching for some common lookup data in an asp.net web application.
In the past, I've created a singleton that creates a bunch of hashtables, which have public accessors. This works pretty well for read-only data that never changes.
I've done a bit of looking into the System.Web.Caching, but it doesn't seem to o...
Hi all, as explained before, I'm currently working on a small linear algebra library to use in a personal project. Matrices are implemented as C++ vectors and element assignment ( a(i,j) = v; ) is delegated to the assignment to the vector's elements. For my project I'll need to solve tons of square equation systems and, in order to do th...
For instance I have a BaseController that I want all Controllers to inherit from. Within there I want to have a User property that will simply grab the User data from the database so that I can use it within the controller, pass it to the views, stuff like that.
Code would look something like:
protected User GetUser(int id)
{
return...
This was mentioned in my other question and I thought it might be useful to add it to the record. In the following program, which, if any, of the locally defined delegates are cached between calls to the Work method instead of being created from scratch each time?
namespace Example
{
class Dummy
{
public int age;
}
...
How can I get static content on Apache to be {cached by browser} and not {checked for freshness {with every request}}?
I'm working on a website hosted on Apache webserver. Recently, I was testing something with headers (Content-Type for different types of content) and saw a lot of conditional requests for images. Example:
200 /index.ph...
We have a website running .NET 2.0 and have started using the ASP.Net HttpRuntime.Cache to store the results of frequent data lookups to cut down our database access.
Snippet:
lock (locker)
{
if (HttpRuntime.Cache[cacheKey] == null)
{
HttpRuntime.Cache.Insert(cacheKey, GetSomeDataToCache(), null, DateTime.Today.AddDa...
We are looking at implementing a caching framework for our application to help improve the overall performance of our site.
We are running on Websphere 6.1, Spring, Hibernate and Oracle. The focus currently is on the static data or data that changes very little through out the day but is used a lot.
So any info would be great. I ha...
I've discovered this folder in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files and have a few questions.
What does ASP.NET use this folder for and what sort of files are stored here?
How does a file get stored here and when is it updated?
Does the folder need any sort of maintenance?
...
How to increase the performance for mysql database because I have my website hosted in shared server and they have suspended my account because of "too many queries"
the stuff asked "index" or "cache" or trim my database
I don't know what does "index" and cache mean and how to do it on php
thanks
...
Rails caches (file cache) per default domain-based, but is there a way to disable this? My rails app can be reached via multiple domains and the content is all the same. I just don't want to have multiple cache files.
(I know memcache is better, this is not part of the question)
...
Our customers have hundreds of projects per application server.
Every project has its own metadata descriptor (~1MB in memory , ~1sec to load from DB).
The metadata is used to validate every request to the server in various aspects (permissions, valid fields, field values etc...) We are heavily dependent upon this metadata.
To save ti...
Hello,
i'd like to prevent bots from hacking weak password-protected accounts. (e.g. this happend to ebay and other big sites)
So i'll set a (mem-) cached value with the ip, amount of tries and timestamp of last try (memcache-fall-out).
But what about bots trying to open any account with just one password. For example, the bot tries a...
It is my understanding that page level caching does not take into account that, for authenticated sites, different users may request the exact same page (URL) while the rendered page itself is different (because it contains stuff that is user specific).
Unless you activate cookieless authentication (then the sessionID becomes part of t...
Quick question regarding CSS and the browser. I tried searching SO and found some similar posts, but nothing definitive.
I use one or two CSS files in my web projects. These are referenced in the HEAD of my web pages. Once I hit one of my pages, does the CSS get cached so that it's not re-downloaded with each request? I hope so. Do IE, ...
How to decrease the number of possible cache misses when designing a C++ program?
Does inlining functions help every time? or is it good only when the program is CPU-bounded (i.e. the program is computation oriented not I/O oriented)?
...
I've written a DLL that may be used in a number of ways (referenced by ASP.NET web sites, WinForms, etc.). It needs to load its data from several delimited files that will be automatically updated on a semi-regular basis. For performance reasons, I'm loading the data into a static object (a generic List), and only want to go back to th...