I'm using codeigniter to create a web app. I'm creating the drop down menus in the header. These are included on every page using load->view(). To populate the menus some quite complex SQL is used. The contents on the menu will change infrequently (once/twice a week), whereas the rest of the data on the page is constantly changing.
Ther...
I have some xml documents I need to run queries on. I've created some python scripts (using ElementTree) to do this, since I'm vaguely familiar with using it.
The way it works is I run the scripts several times with different arguments, depending on what I want to find out.
These files can be relatively large (10MB+) and so it takes r...
We are creating typical web applications secured by https. In order to be able to cache static resources, I would like to expose images, javascript files etc. over http. Otherwise they don’t get cahched. Is this advisable from security point of view? What are the risks involved?
EDIT: I would like to have static content cached by proxie...
I want to verify that the images, css, and javascript files that are part of my page are being cached by my browser. I've used Fiddler and Google Page Speed and it's unclear whether either is giving me the information I need. Fiddler shows the HTTP 304 response for images, css, and javascript which should tell the browser to use the cach...
I found out that when pressing back button it gets previous page from browser cache even if I send following headers:
Test1.aspx
Server ASP.NET Development Server/9.0.0.0
Date Wed, 24 Mar 2010 17:49:40 GMT
X-AspNet-Version 2.0.50727
Location Test2.aspx
Cache-Control no-cache, no-store
Pragma no-cach...
Hi!
Here's the deal. We would have taken the complete static html road to solve performance issues, but since the site will be partially dynamic, this won't work out for us.
What we have thought of instead is using memcache + eAccelerator to speed up PHP and take care of caching for the most used data.
Here's our two approaches that w...
Hi!
Im trying to find a good way to handle memcache keys for storing, retrieving and updating data to/from the cache layer in a more civilized way.
Found this pattern, which looks great, but how do I turn it into a functional part of a PHP application?
The Identity Map pattern: http://martinfowler.com/eaaCatalog/identityMap.html
Than...
Hi!
When looking at the set folder in php.ini for eAccelerator to use, nothing is there. No hidden files as well. Directory is writable as well:
eaccelerator.cache_dir = "c:/wamp/tmp/eaccelerator"'
Also got the following settings in php.ini to allow disc cache:
eaccelerator.disk_size="12"
eaccelerator.keys="disk_only"
eaccelerator.s...
I have 2 squid servers load-balanced with F5 LTMs set up as a reverse proxy.
My problem:
origin server A hosts domains 1, 2, and 3
origin server B hosts domains 4 and 5.
how can I set up squid so that it will cache all vhosts for both servers?
my current config:
cache_peer serverA parent 80 0 round-robin no-query originserver login=...
I wanna play a couple of movies in a loop with netstream, and I want all of them to be saved in the browsers cache or on the users disk to maximize the performance.
Can't find any information about this (my google skills sucks!!)
Anybody knows?
...
Or it would be faster to re-read that data from mapped memory once again, since the OS might implement its own cache?
The nature of data is not known in advance, it is assumed that file reads are random.
...
Hi, we have a cache which I would like to put some transaction scopes around so that any process have to explicitly 'commit' the changes it wants to do to the cached objects and make it possible to rollback any changes when the process fails halfway as well.
Right now, we're deep cloning the cached objects on get requests, it works but ...
I'll start by telling my project setup:
ASP.NET MVC 1.0
StructureMap 2.6.1
VB
I've created a bootstrapper class shown here:
Imports StructureMap
Imports DCS.Data
Imports DCS.Services
Public Class BootStrapper
Public Shared Sub ConfigureStructureMap()
ObjectFactory.Initialize(AddressOf StructureMapRegistry)
End Su...
I recently received a project that contains multiple web applications with no MVC structure. For starters I've created a library (DLL) that will contain the main Business Logic. The problem is with Caching - If I use the current web context cache object than I might end up with duplicate caching (as the web context will be different for ...
I want to avoid an item being removed from cache when expire in SOME OCASIONS
If i understand how CacheItemUpdateCallback works, i need to asign to expensiveObject the new object, in my case: the old one.
But i cant access the item with HttpContext.Current.Cache[key],
my question: how to access the old item? or in other words, How pre...
Hi
I have different urls that points to the same code
www.url1.com
www.url2.com
I need to use the cache, but if the asp net cache is enabled when someone access to www.url1.com next person accessing www.url2.com could get the previously cached data (www.url1.com)
I need to have ALL caches activated except this one.
...
On the origin server I have the following caches: http.sys, IIS output cache, asp net output cache, etc
Do these two options do the same? (disable ONLY the asp net output cache)
<caching>
<outputCache enableOutputCache="false">
</outputCache>
</caching>
and
response.Cache.SetNoServerCaching();
...
Hi,
Not sure if I really am on the right forum, but if not, just tell me. I have a page that is coded in ASP (not .net) which is used to send email. We are currently having a problem in which the page seem to be sent twice sometime. Upon checking, we found out that those who have this problem are coming from big organisation, so it was ...
I'm testing a PHP function that generates tags for scripts, images and stylesheets, based on just the filename and internal variables that tell it things like 'image files live in the /images directory`'. It appends timestamps to bust the browser cache, spits out image dimensions as needed, etc. (You can read about it and see the code he...
I have the following Repository:
Public Class PageRepository
Private Shared _pages As BLL.PageCollection
Shared Function AllPages() As BLL.PageCollection
If _pages Is Nothing Then _pages = new BLL.PageCollection(LOADALL)
Return _pages
End Function
End Class
I do all selects using LINQ on the PageRepository...