Tag Archives: caching

Magento + APCu caching issue. Site is slow and there is more cache misses than hits

Questions: I have a Magento 1.7.0.2 installation running on LEMP Stack; Nginx + PHP-FPM (PHP v5.5.6 w/ APCu v4.0.2) + Percona. I’ve configured my magento to use APCu caching like this: app/etc/local.xml <config> <global> … <cache> <backend>apc</backend> <prefix>BDWEB_</prefix> </cache> </global> … </config> and the APC is configured like this: /etc/php.d/apcu.ini extension=apcu.so apc.enabled = 1 apc.shm_segments… Read More »

How to use HTTP caching in nginx for html files?

Questions: My current nginx configuration for HTTP content caching is something like this: location ~* \.html$ { expires -1; } location ~* \.(css|js|gif|jpe?g|png)$ { expires 168h; add_header Pragma public; add_header Cache-Control “public, must-revalidate, proxy-revalidate”; } As you see I’ve disabled caching on the HTML files since they get updated quite frequently. Now I want to… Read More »

Caching images on all folder levels of nginx reverse proxy

Questions: I’m trying to get my head around caching images for my open source image hosting serivce PictShare. Pictshare has a smart query system where an uploaded image can be in a “virtual subdirectory” that changes the image. For example this is the link to the uploaded stackoverflow logo: https://www.pictshare.net/6cb55fe938.png I can resize it to… Read More »

When did caching in a UIWebView start working?

Questions: I’ve been testing an iPhone view controller that uses a UIWebView to load external content, as opposed to resources in the project’s bundle. Another engineer noticed that the web view wasn’t caching at all, so I went into do some research. Some older questions indicated that UIWebView’s just couldn’t cache external content. Previous SO… Read More »