Tag Archives: caching

PHP5 Frameworks: Autoloading and Opcode Caching

Questions: A number of frameworks utilize spl_autoload_register() for dynamically loading classes (i.e. controllers and models). There are a couple of posts on the issue of autoloading and opcode caching. One post in particular has a response by @cletus which references @Rasmus making a number of statements which prove to be unsavoury for those utilizing APC… Read More »

How do I completely disable caching in Cakephp?

Questions: So I opened the cache floodgates in my Cakephp app and now I want to close them… I’ve done pretty much everything I can: delete all files in the tmp folder (but not the folders), turned ‘Cache.disable’ on in the core.php file in my app, have tried clearing the cache from within some controllers… Read More »

Beginner data caching in PHP

Questions: I’m using simpleXML to go through the XML results of a Twitter XML file, but I’m completely lost as to caching the results with PHP. This article seems to be of some help, but I’ve come across memcache (and memcached. C’mon, namers.) as well, and I have no idea what to do. I’m using… Read More »

asp.net caching limit? [duplicate]

Questions: Possible Duplicate: ASP.NET cache maximum size I’m caching quite a lot of datatables using asp.net caching (the floowing code): HttpContext.Current.Cache.Insert(GlobalVars.Current.applicationID + “_” + cacheName, itemToCache, null, System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromMinutes(240)); However I think that the cache on the server is getting full and having to re-obtain the datatable data from the database. Is there any limit… Read More »

How to stop entity framework caching

Questions: We’re having a problem testing Entity Framework 4. We’ve deployed a WCF service that implements an EF data context. All works fine untill we modify the data using SQL server studio. Is there a way to stop EF caching our results or is there any way to turn eager loading on? Cheers, James Answers:… Read More »

Disable caching in JPA (eclipselink)

Questions: I want to use JPA (eclipselink) to get data from my database. The database is changed by a number of other sources and I therefore want to go back to the database for every find I execute. I have read a number of posts on disabling the cache but this does not seem to… Read More »

How to enable HTTP response caching in Spring Boot

Questions: I have implemented a REST server using Spring Boot 1.0.2. I’m having trouble preventing Spring from setting HTTP headers that disable HTTP caching. My controller is as following: @Controller public class MyRestController { @RequestMapping(value = “/someUrl”, method = RequestMethod.GET) public @ResponseBody ResponseEntity<String> myMethod( HttpServletResponse httpResponse) throws SQLException { return new ResponseEntity<String>(“{}”, HttpStatus.OK); } }… Read More »

Any way to make Java honor the DNS Caching Timeout (TTL)?

Questions: We use GSLB for geo-distribution and load-balancing. Each service is assigned a fixed domain name. Through some DNS magic, the domain name is resolved into an IP that’s closest to the server with least load. For the load-balancing to work, the application server needs to honor the TTL from DNS response and to resolve… Read More »

Preventing Caching of CSS Files

Questions: I am developing a simple website using PHP. Development Configuration : WAMP Production Configuration : LAMP While testing, I changed my CSS file, but when I reload the page my browser(not sure) still uses the old cached css. I did some googling and found different solutions that I have already tried Appending a query… Read More »