Hello,
I have a question related to cache invalidation techniques... I am trying to implement a mechanism for my website, that automatically invalidates browser cache (css, images...). I want to be able to programatically invalidate browser cache, whenever I update the website (change images or styles);
For example: for the current re...
How can you best cache disconnected ADODB recordsets application wide in a classic asp scenario?
It does not seem like it is possible to store disconnected recordsets in application state, or am I missing something?
I found an example of how you can persist recordsets to xml and load them again, but I was hoping to stay in memory - but...
I have a classifieds website, which uses PHP and MYSQL.
I have several pages which uses javascript also.
I need to know what type of caching to use to increase performance on my site...
There is alot of 'constant' images like menues, sidebars, background-images which probably can be cached in a way.
Do you know if web-browsers cache t...
i have a 3 tier app, .net 3.5
one db infinite servers that talks directly with him.
my orm impl is fluent nhibernate.
i wanna use second level cache on servers cause of the long distance between them and the db.
whats best cache provider for my case?
i already implemented a notification mechanism that can clear updated items from cache
...
At first, caching didn't work in all browsers. Then I made it work in all browsers but IE (IE8) by adding .pdf extension to the url. Servlet stopped being called after that.
I display pdf file inline on the webpage via EMBED tag that loads the following url:
http://localhost:7001/app/viewFile.pdf
Which is generated by java servlet wi...
Hi guys,
I load a list of a database table via Linq in the page load of my site.
Now I must cache the list, because I will use them in a WebMethod again. (I can't load them new, because it can be changes in there).
How to cache a List<> and get it back in a WebMethod?
...
Hi Guys,
I have a caching system build within php that stores the results of a mysql query in xml. I lock the cache when building by creating a lock file with an exclusive write handle, and then remove it once the cache file is completed.
However, there are times when the script either times out or halts mid execution, leaving the loc...
hi all,
i am facing one problem. I need to update the server session's cache when we say writeChanges in unit of work. As in my application i do not say commit on unit of work instead i say commit on connection which indirectly commits the transaction but does not update the cache.
so can any one tell me how to do that in any of the cas...
where can i find SharedCache with fluent nhibernate getting started guid
...
In this article, it is argued that Use Memcache if you frequently fetch random entities from a database, and Squid if you use a REST architecture. Please explain why (with regard to Squid).
...
I'm setting up a rails app with simple page caching. (First time I've tried using page caching.)
The cached pages are being created. I have my cache folder set to /public/cache. The cached pages are automatically being created according to their URL, which follows the published date (to avoid filename collisions). I don't have any custo...
I am considering the implementation of a caching subsystem that acts as a facade for heterogenous cache implementations.
The immediately obvious disadvantage with this approach is that you lose cache-specific functionality in the abstraction (e.g. System.Web.Caching will have slightly different capability to, say, Memcached). The benefi...
How can I disable caching for my rails site?
I'm running Passenger (mod_rails) and my site is running in 'development' mode:
'ENV['RAILS_ENV'] ||= 'development'
Any help?
...
Hi,
On my Apache server I have a PHP service that gets requests and generates an image from them. What I want to do is to cache the generated image on my server (not client's browser) once it was generated, so if the image with specific parameters has been generated already and someone requests it my web server will return cached image ...
Hi, I was wondering how I can pull down a portion of a table using LINQ To SQL into C# memory space. Let's say I have a database with thousands of records and a GUI interface that shows one record at a time.
When the user clicks the next / previous record button on the GUI the LINQ To SQL datacontext has to go and get the next record - ...
Please tell me about System.Web.Caching.Cache.NoSlidingExpiration in ASP.NET.
...
The nsICacheSession has a method openCacheEntry() which returns an existing cache entry. Is there a method such as createCacheEntry() that will create a cache entry. I want to create an XPCOM object that will read files from disk and write them to Firefox cache.
Thanks
...
I have an ASP.NET mvc application hosted on a server. I am continually updating my CSS and JS files for the application. After changing the files and updating the same on server, when I hit the URL for my application it runs with client cache. Is there any easy mechanism by which I can clear the cache whenever there is any change in stat...
I started with 5 normal human-readable JavaScript files - they were around 10 KB in total.
After using YSlow, I decided to merge the 5 files and pack them using Dean Edwards' packer. Now I have 1 file that is 4.5 KB.
When I re-run YSlow, it is now showing the JavaScript file in the primed cache under 'statistics', where previously (whe...
While trying to implement support for conditional GETting in a rest system, we have come across the fresh_when and stale? methods.
The following code works fine with 304 and not further rendering:
if stale?(:etag => resource, :last_modified => resource.updated_at.utc)
respond_to do |format|
format.html # show.html.erb
...