FAQ Database Discussion Community
c#,asp.net,caching
I have plenty of available ram (about 25 GB of free memory) and I don't want the cache to expire and I just remove and recache items when there is a change.As my website is in testing process it has 1 or 2 KBs of cached items but when I...
python,django,caching
What is the default size of the local memory cache for Django. https://docs.djangoproject.com/en/1.8/ref/settings/ does not mention any. https://docs.djangoproject.com/en/1.8/topics/cache/#cache-arguments says it is 300, but the following code always returns a different value: for i in range(0, 10000): cache.set(i, i) first = cache.get(0) if first is None: print i break I have...
node.js,caching,reactjs,webpack,isomorphic-javascript
I'm building an isomorphic application. It is completely built with react -- namely, the html base is also in react. I have my root html as an app component. It looks something like this: ... var AppTemplate = React.createClass({ displayName: 'AppTemplate', render: function() { return ( <html> <head lang="en"> <title>hello</title>...
java,caching,sync,flush,file-descriptor
Will this ensure that all data is synced on the local machine or just data originating within the currently operation JVM? FileOutputStream s = new FileOutputStream(filename) s.getFD().sync() FileInputStream fis = new FileInputStream(null); fis.getFD().sync(); Context: we have many programs (other software) that write to a file that we share. We all...
java,caching,serialization,bufferedimage
I'm developing a java application in which I load some long lists containing images (downloaded from web), so I added a quick HashMap<String,BufferedImage> as a cache, to avoid redownloading the same image multiple times. This works fine and the application is way faster, but it would be nice to let...
java,performance,caching,concurrency
In the "95% of performance is about clean representative models" talk by Martin Thompson, between 17 and 21 minute, such code is presented: public class Queue { private final Object[] buffer; private final int capacity; // Rest of the code } In 20:16 he says: You can get much better...
c#,asp.net,asp.net-mvc,caching,system.io.file
This question already has an answer here: “The process cannot access the file because it is being used by another process” with Images 6 answers I have the following method which resizes a given image and caches it [OutputCache(Duration = 3600, VaryByParam = "id")] public ActionResult UserFace(int id) {...
javascript,html5,caching
I've found many explanations about caching, some of them even have examples but, it is kind of foggy to understand it and how to use it. I've tried to use it many times, but I've failed (I want to improve speed, I want only the necessary to be loaded from...
caching,active-model-serializers,rails-api
I am using a database-driven solution for labels and translations that I would like to cache at the serializer level. Here is my serializer. class AppLabelSerializer < ActiveModel::Serializer cache key: 'app_label', expires_in: 3.hours attributes :id, :key, :label, :label_plural def key object.app_label_dictionary.key end end The problem is that I need to...
ios,database,swift,caching,core-data
I understand that Core Data is essentially a self-contained local database, but I'm not sure if I should be using it in my app or not. Basically, it would be more for caching purposes if anything, since I retrieve all of my content from a web server database. Regardless, I...
ios,objective-c,caching,uiwebview
I want to copy cache data into database(sqlite/coreData) so that I can view while offline (without Internet) like " Reading List in Safari ". I read the code at Xcode UIWEBVIEW download , save HTML file and show which is following:- - (void)viewDidLoad { NSURL *url = [NSURL URLWithString:@"http://livedemo00.template-help.com/wt_37587/index.html"]; //[WEBVIEW...
java,hibernate,jpa,caching,ehcache
I'm having an issue where a Validation instance is added to a Collection on a Step instance. Declaration is as follows: Step class: @Entity @Table @Cacheable @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public class Step extends AbstractEntity implements ValidatableStep { @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true) @JoinColumn(name = "step_id", nullable...
django,python-2.7,caching,tastypie
i am using python 2.7,django=1.5 and tastypie v0.12.1 when i am hit 1 recourse data is then caching is happing class BranchResource(ModelResource): class Meta: collection_name="data" queryset = Branch.objects.all() resource_name = 'branch' authorization = Authorization() limit = 0 #(unlimted) filtering = { "branch_flag": ALL, "branch_name":('exact', 'startswith','istartswith',), "cid":ALL, } cache = SimpleCache(timeout=1000)...
java,caching,download
Okay, I've been trying to figure this out for a few hours and it's starting to kill me. I wrote a primitive version checker for an app I work on every once and awhile. It's just a simple for fun project. The version checker has been a pain though. It...
caching,rendering,easeljs,createjs
I would like some help regarding caching Text objects using EaselJS library. I never fully understood how caching works, and i must be missing something really fundamental, because i cannot seem to make it work. Take the following simle example. this.label.cache(this.label.x, this.label.y, rec.width, rec.height); https://jsfiddle.net/xnqcjsg8/ If you comment the line...
ios,json,swift,caching
I'm working with some API data that gets updated frequently. I recently discovered that the data does not update properly on the phone, when it's updated on the server. After hours on hours trying to troubleshoot this, I finally simply tried deleting the app from my phone, and reinstalling in....
caching,apache-spark,persist,rdd
As a newbie to Spark, I have been looking at their python example for estimation of PI. I am interested to understand Spark's performance by re-estimating PI several times within the same context. What I am observe is that the value of PI is unchanged across these re-estimations, and the...
codeigniter,caching,codeigniter-2
I'm trying to save into the cache a json web response, my controller it's pretty simple, here's: <?php defined('BASEPATH') OR exit('No direct script access allowed'); include_once APPPATH . 'models/presenters/Radio.php'; use Streame\Model\Presenter\Radio as Radio; use Streame\Model\Presenter\Genre as Genre; class Test extends MY_Controller { public function index(){ $this->load->driver('cache'); if (! $cache_data =...
performance,mongodb,caching,memory
I will be creating a 5 node mongodb cluster. It will be more read heavy than write and had a question which design would bring better performance. These nodes will be dedicated to only mongodb. For the sake of an example, say each node will have 64GB of ram. From...
javascript,html,angularjs,caching,angularjs-directive
I created a directive with dynamic template and it is working well. The problem is that I am getting an error: At Chrome = TypeError: undefined is not a function at forEach.attr At Firefox = Error: element.setAttribute is not a function Here is the code: return { restrict:'E', replace:true, scope:{...
c#,asp.net-mvc,caching,outputcache
This is what I have: [OutputCache(Duration = 3600, VaryByParam = "model")] public object Hrs(ReportFilterModel model) { var result = GetFromDatabase(model); return result; } I want it to cache a new result for each different model. At the moment it is caching the first result and even when the model changes,...
css,symfony2,caching,vagrant,assetic
Today I started changing some CSS on a Symfony (2.6) project. I added some styling to my newly created css file and everything was working fine. My problem occured when I went to add another style and nothing happened. I checked the dev window and couldn't find my styles anywhere....
java,caching
Currently im switching my state of mind to develop applications more cache friendly. In C++ im using stack allocation where i can,also i'm holding data with this same purpose in one array(Data Driven Programming) etc... But im also Java developer and there comes a question: I heard that Java is...
java,hibernate,jpa,caching,concurrency
I am using Hibernate(with JPA) in an application that has a high write-read ratio. For caching I have enabled query-cache and hibernate second level cache(ehcache). The problem I am facing is due to automatic query cache invalidation when an update is done. Is there any way to configure query cache...
android,caching,webview,browser-cache,offline-caching
When I open webview, it runs great when there is a network connection, but I have enabled caching in it, and without a network connection, it shows an error and loaded cached web page is not showing. I have enabled caching and also set cache mode, but it's not working....
c#,asp.net,caching
When inserting and retrieving items into cache. Is it best practice to perform a lock on the cache. I've following the guidelines from the following post. What is the best way to lock cache in asp.net? But i'm keen to get some context on whether i need to lock or...
scala,caching,concurrency,future
Suppose I have a server, which calls a time consuming function slow: Int => String upon a client request. If slow does not return within the timeout the server returns an error to the client. def trySlow(timeout: Duration)(id: Int): Try[String] = { val fut = Future(slow(id)) try { Await.ready(fut, timeout).value...
c#,azure,caching
I am using the Azure Redis Cache following the tutorial https://azure.microsoft.com/en-us/documentation/articles/cache-dotnet-how-to-use-service/ . How I can use this cache without using the webconfig? Here is my code. The c# code using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.ApplicationServer.Caching; using System.Data; using System.Data.SqlClient; namespace MoviesDB.CacheWrappers { public class AzureManagedCache {...
scala,caching,memoization
I'd like to do a TTL based memoization with active refresh asynchronously in scala. ScalaCache example in the documentation allows for TTL based memoization as follows: import scalacache._ import memoization._ implicit val scalaCache = ScalaCache(new MyCache()) def getUser(id: Int): User = memoize(60 seconds) { // Do DB lookup here... User(id,...
angularjs,caching
Good morning, I have a web application in production environement. The users are using it every day, when I publish an update and a user comes back to the web application he views the old version of the web application. He needs to refresh the browser to load the new...
php,laravel,caching,routes
Today I have the following problem with this routes , It has never happened to me before now. {!! Form::open(array('route' => 'subastas/creado', 'class' => 'form')) !!} <div class="form-group"> {!! Form::label('Your Name') !!} {!! Form::text('name', null, array('required', 'class'=>'form-control', 'placeholder'=>'Your name')) !!} </div> <div class="form-group"> {!! Form::label('Your E-mail Address') !!} {!! Form::text('email',...
javascript,jquery,caching
My problem might be naive, but basically I have a simple Jquery script running on a site to determine the margin height of divs based on the contained image's height: <script type="text/javascript"> $('.artobject').css('margin-bottom',$('.img-wrap').height()); </script> The problem is that it runs once, but after the page is reloaded the code begins...
caching,cuda,gpgpu
I just noticed it's at all possible to have (CUDA kernel) memory accesses uncached (see e.g. this answer here on SO). Can this be done... For a single kernel individually? At run time rather than at compile time? For writes only rather than for reads and writes? ...
c#,caching,memory
I couldnt able to find the cached and free memory of a system using C#.Help me.......
python,python-2.7,python-3.x,caching,local-storage
Similar to redis and memcache, does Python by default has a caching attached to its run time environment? This has to be local caching. I need to know without installing or invoking any other libraries, can I cache some data using the existing Python installation in my system. I need...
java,caching,memory,hazelcast
I'm implementing the backend of a game in Java and I was told to use Hazelcast to cache some data from the database. How could I find out how much memory is used by the cache (necessary to determine the business cost of this solution)?
javascript,php,css,image,caching
Many PHP developers add the no-cache header on top of their PHP pages, so do I, for obvious reasons. Since PHP generated content is usually dynamic, having the browser cache them results in outdated data being presented to the user. To avoid this caching is usually disabled. <?php //no cache...
java,caching,playframework-2.2
I would like to store Java object in cache for user session. I would like to know what is default cache storage timeout. I user log in on 8.00 am I will store his user object in cache. Will it keep f.e. 10 hours until user will logout? Will be...
apache,caching
How can I clear apache cache in xammp? I tried the 'htcacheclean -r' command, but it's always generated error. If I know well the apache can't cache the files/ scripts, but a system administrator said this: 'The apache casheing the site, so clear the apache(!) cache.'. ...
caching,architecture,multiprocessing,vhdl,mesi
I'm doing a project that is to implement a dual-processor system with some kind of cache coherency (for which I chose MESI) in VHDL. I just want to confirm this one thing: a write-hit on a shared cache line should cause the cache controller to send invalidation messages on the...
caching,typo3,typoscript,extbase,typo3-6.2.x
My TYPO3 extension has a lib that generates random 5 images from the total stock, for example out of the 100 images. This is done randomly every time the page is loaded. Only default the TYPO3 cache is enabled so every time the same 5 images are showed. As the...
caching,clojure,wildfly,immutant
I have a heimdallr application that is deployed via wildfly. In this application I am using the cache functionality that is provided by the namespace immutant.caching. The first time I deploy the application everything goes fine without error. If I attempt to redeploy the application I get the following error:...
caching,arm,computer-architecture
Could someone explain what is the difference between cache memory and scratchpad memory? I'm currently learning about computer architecture.
ios,objective-c,caching,afnetworking
Does AFNetworking cache still work for objective-C? I have been trying to cache API response using AFNetworking, but it seems not to work anymore. AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; NSString *requestURL = [NSString stringWithFormat:@"http://ssssssssss.com"]; manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"]; [manager.requestSerializer setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData]; [manager GET:requestURL parameters:nil...
apache,caching,fingerprinting
I'd like to optimize caching of static assets (.js, .css, ... files) used in our web. My goal is based on this article (https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching#invalidating-and-updating-cached-responses). In short - because these static assets tend to be updated ad-hoc (sometimes weekly, sometimes twice a day, ...) I'd like to cache them with far...
android,image,caching,bitmap
what is the best approach to load multiple images from local android device? do i still need to cache the bitmap or should i just load the bitmap directly to imageview? is there a library that you can recommend? i have read about other libraries such as glide, picasso, etc....
php,caching,yii2,yii2-advanced-app
I have a page where I submit a form that I want to cache but only for get requests. I cannot figure out if there is a way to do this but the Yii2 guide seems to hint at it http://www.yiiframework.com/doc-2.0/yii-filters-pagecache.html#$enabled-detail, it says you can enable it only for Get...
facebook,caching
One my friends died a few days ago and the family is trying to download their news feed since the posts started(roughly 48hours ago). Does anyone know of a way to download the news feed?
ios,swift,caching,model
So in my app I have a master view controller which checks whether or not NSUserDefaults.standardUserDefaults().objectForKey("userLoggedIn") == nil or not. If it's nil, it presents the authentication view controller (login ,register, etc.). Otherwise, the app is initialized. My question is - should I be storing user information? I'm not talking...
caching,service-worker
I'm using a ServiceWorker to cache some assets and I want to let the user know once all the files have been successfully cached, so they're aware the content is accessible offline. When is the right moment to do this? I have several console.log() to have an idea of the...
caching,compilation,shader,gpu,cpu
To understand in general how GPU's cache support work, I read some information and understood this: CPU compiles shader and transmit resulting code of shader to GPU to execute and also save it to the disk. If necessary to execute the same shader, GPU get it saved binary code directly...
caching,amazon-web-services,amazon-elasticache,spring-cache
I am using Spring cache with AWS elasticache provider. I get this warning: WARN c.g.code.ssm.spring.SSMCache - An error has occurred for cache defaultCache and key java.lang.IllegalStateException: Client is not initialized at net.spy.memcached.MemcachedClient.checkState(MemcachedClient.java:1623) ~[elasticache-java-cluster-client.jar:na] at net.spy.memcached.MemcachedClient.enqueueOperation(MemcachedClient.java:1617) ~[elasticache-java-cluster-client.jar:na] at net.spy.memcached.MemcachedClient.asyncGet(MemcachedClient.java:1013)...
c#,asp.net-mvc,azure,caching,sql-azure
I have asp.net mvc5 project hosted in Azure that is using SQL Azure for data persistence. Some tables in my database are like dictionaries, they are referenced by lots of tables, and very rarely changed. One example of such table can be Client app type: Windows, Windows Phone, Android, etc....
linux,file,caching,output,ramdisk
I have a nice caching system in linux that uses a ramdisk to cache both image files and the HTML output of various pages of my website. My website is rather large and the ramdisk space required to cache everything exceeds 15GB (excluding image output) and I only have 2GB...
php,wordpress,caching,cron,call
I have a website, that uses WP Super Cache plugin. I need to recycle cache once a day and then I need to call 5 posts (URL adresses) so WP Super Cache put these posts into cache again (caching is quite time consuming so I'd like to have it precached...
java,http,caching,client,cache-control
From a Java application, using CXF, I call rest web services. The rest ws respond using HTTP Headers 1.1 cache-control (max-age, no-cache ...). From the java client, how can I use these headers? Are there any framework / tool / example to use them and to cache data as it...
caching,openlayers-3,geoserver,retina
I have an application which serves some layers from GeoServer (GeoWebcache) tile cache. By default it stores them in 256*256 pixel resolution but the ol.source.TileWMS source requests 512*512 pixel ones when using a retina Macbook Pro which causes the server to reply: 400: The requested tile dimensions 512x512 do not...
python,django,caching,memcached
I have a django weather site for a small local community that features view decorator caching. Currently the cache is set to expire every 5 minutes at which point the next person to hit the view will be forced to wait about 10 seconds for the view to pull data...
android,caching,picasso
In documentation in written that picasso caches images downloaded , but i havent seen an example how to call that image again from cache. Here i first time load the image : Picasso.with(getActivity()) .load(thirdArticle.getImageURL()) .resize(200, 150) .centerCrop() .into(mainThreeArticleImage); Second time when i call same code above it shouldnt get from...
java,caching,apache-spark
I wrote a small Spark application which should measure the time that Spark needs to run an action on a partitioned RDD (combineByKey function to sum a value). My problem is, that the first iteration seems to work correctly (calculated duration ~25 ms), but the next ones take much less...
firefox,caching,firebug
I am working on caching some pages and I noticed this in Firebug: So it says that the cache expired 45 years ago. Is this a bug or some bad data? I have another page that is caching correctly I just do not understand why its saying Expires ... 1970....
caching,varnish,varnish-vcl
I have this issue, I use Varnish 3.0 and I want to avoid caching errors. I'm aware that this piece of code should do it: if (beresp.status >= 500) { set beresp.saintmode = 2m; if (req.request != "POST") { set beresp.ttl = 0s; return(restart); } else { set beresp.ttl =...
caching,system,cpu,computer-architecture,cpu-cache
This is a question based on Direct Mapped Cache so I am assuming that it's ok to ask here as well. Here is the problem I am working on: The Problem: " A high speed workstation has 64 bit words and 64 bit addresses with address resolution at the byte...
caching,nginx,cache-control
Given the sample location example below, what does -1 mean for expires? Does that mean "never expires" or "never caches"? # cache.appcache, your document html and data location ~* \.(?:manifest|appcache|html?|xml|json)$ { expires -1; access_log logs/static.log; } https://github.com/h5bp/server-configs-nginx/blob/master/h5bp/location/expires.conf...
caching,multicore,computer-architecture,processor,false-sharing
For my bachelor thesis I have to evaluate common problems on multicore systems. In some books I have read about false sharing and in other books about cache-line-ping-pong. The specific problems sound very familiar, so are these the same problems but given other names? Can someone give me names of...
caching,cuda
I'm trying to understand how a matrix transpose can be faster reading naively from columns vs. rows. (example is from Professional CUDA C Programming) The matrix is in memory by row, i.e. (0,1),(0,2),(0,3)...(1,1),(1,2) __global__ void transposeNaiveCol(float *out, float *in, const int nx, const int ny) { unsigned int ix =...
javascript,angularjs,performance,caching,angularjs-ng-repeat
We have huge rendering spikes with ng-repeat in Angular application. Main page shows a huge list of cover images ("::" and "track by" are in place). On first load it works acceptable. But if user changes the state (we use UI-Router) and goes back to the home page afterwards then...
ios,objective-c,caching,parse.com,pfquery
I'm setting my PFQuery object's cache policy to 'kPFCachePolicyCacheThenNetwork' but the cache remains empty all the time. Can some one help me out what's going on? The below code returns the cached results empty all the time -(void)doSomeQuery { PFQuery *query = [PFQuery queryWithClassName:kMySpecialClass]; [query whereKey:kDateExpires greaterThan:[NSDate date]]; query.cachePolicy =...
asp.net,asp.net-mvc,caching,donut-caching,child-actions
I'm doing donut caching with the MVCDonutCaching library. Background to donut caching using this library: The way it works, is you can cache a view, but exclude part of it from being cached, i.e. the "donut hole". You do this by having the uncachable stuff as a partial view, which...
ios,objective-c,uitableview,caching,image-caching
I was trying to load and cache images in my app for showing on UITableView. The original concepts looks like: if (image in cache){ show cached image; }else{ if (image in file){ show filed image; }else{ load image from web asynchronously; if (finished){ store in cache; store in file; }...
php,symfony2,caching
Context : I have been asked today to add a new feature on a quite old project (something like Symfony 2.0). It consisted in adding a new attribute to an entity and add the corresponding field to the edition form. Child play : I have edited the code and it...
pdf,caching,asp-classic
I just started to manage a website for the company I work for and it is still running with ASP Classic so I have had to learn quite a bit. Recently our managment has started to post a dynamically updated PDF to the website every few hours. The problem I...
html,caching,browser-cache
I am making a website and am running into an issue with website cache for my users. I develop my website and have set chrome developer tools to disable cache for my website for development. The issue is when i release a new change to prod all my users don't...
caching
I'm developping a Client-Server application and a database to which multiple users will have to connect to. It's a .Net client windows application. Some of the database queries will be performed so many times by each user and I'm thinking of creating a local cache at the client level that...
java,caching,static,hashmap
I want to know if it is possible to omit creating cache with static Map instance. Here is snippet of my class: public class XpathEvaluator { private DocumentBuilder builder; private XPath path; private Document document; private static Map<String, List<String>> cachedXpaths = new HashMap<>(); private XpathEvaluator() throws ParserConfigurationException { DocumentBuilderFactory factory...
html,.htaccess,caching,basic-authentication,.htpasswd
I have a working website with a verification/login using .htaccess & .htpasswd. When trying to cache it I get the error: Application Cache Error event: Resource fetch failed (403) http://fman.cf/.htaccess I'm not sure if their is another way to have an offline verification but here is my Offline.appcache file: CACHE...
caching,nginx
I'd like to use nginx cache for a specific url only The url is /ajax/airport and must contain the parameter ?geoloc=1. Cache is working fine, the only issue I'm facing is to get it working for an url containing the given parameters. Here is my nginx site.conf file: server {...
caching,apache-spark
How is the behavior of memory_only and memory_and_disk caching level in spark differ?
javascript,jquery,ajax,caching
I'm new to JavaScript/jQuery and I think my problem isn't that hard to solve. I want to cache a variable (list) in a session and if that list wasn't cached before, an ajax request should be made. My Problem is that globalList is null after the ajax request, so I...
angularjs,caching,angular-cache
I'm attempting to use angular-cache v4.2: angular-cache I am unable to get it storing between page refreshes. I tried to create a codepen, but didn't get very far as I have been unable to inject the module on there. codepen. angular.module('myApp', ['angular-cache']) .config(function (CacheFactoryProvider) { angular.extend(CacheFactoryProvider.defaults, { maxAge: 15 *...
ruby-on-rails,ruby-on-rails-3,caching,null,memcached
I have an existing Model singleton method triggering expensive database queries that I want to model cache. To do this, I wrapped a Rails.cache.fetch() call around the method in question: # app/models/specialist.rb class Specialist < ActiveRecord::Base def city Rails.cache.fetch([self.class.name, self.id, "city"], expires_in: 23.hours) do # expensive legacy query: if responded?...
caching,cdn
Is there any benefit to (HTTP-) serving a non-cacheable resource over a CDN? (my use case: I'm serving a static Single Page App and I'd like to improve its load time, but I don't want index.html to get cached, because I want every new release to be reflected immediately. Specifically,...
ios,url,caching
I am unable to delete the cache for a request, on top of that I can't use NSURLRequestCachePolicy to Ignore local and remote cache data. What to do? It seems impossible to just ignore the cache. Some things that I have tried but they didn't work: Removing the cache for...
android,redirect,caching,android-volley,http-status-code-302
I have a set url (ex: http://mywebsite.com/cawn28xd/user_avatar) I call for imageloading that redirects to another link that may or may not be different. I want to be able to either intercept the 302 redirect and grab the url so the imageloader will not cache that specific url (This brings up...
python,django,caching,memcached,python-memcached
I am using django 1.7 with python3.4. I recently installed Memcached and am trying to use it with python-memcached as per site cache. But once I define the default cache backend in the settings.py, my application stops working throwing this error: 'str' does not support the buffer interface The installed...
c#,linq,caching
I am working on a project where I plan on using Redis as persistent data storage, however the task at hand, I am working on a generic Object cache. and as a huge fan of LINQ I have started designing a cache which does support this. public ConcurrentBag<Object> Cache =...
xaml,caching,windows-store-apps
I'm caching Views in XAML in order to improve performance (don't need to load the controls again). Does this make sense / improve performance of loading controls? Problem is, although I'm caching / loading the same thing, it seems when I use the Cached View, it has a different appearance....
ruby-on-rails,caching,redis
I want to use Redis to do some low level caching in my Rails app. In a controller I normally us this to get all books: class BooksController < ApplicationController def index @books = Book.order(:title) end end And the view iterates over this: <ul> - @books.each do |book| <li>= "#{book.title}...
java,caching
I'm working on an auto updater for a game client and I've run into an issue. What I need it to do: Download cache.zip and client.zip. Extract cache.zip to cacheDir and extract client.zip to the same location they are running the jar(game). What it does right now: Downloads both cache.zip...
http,caching,filter,proxy,http-patch
Suppose my server exposes an HTTP-based API that uses the PATCH method introduced by RFC 5789. Is it possible that clients (browsers or otherwise) behind corporate firewalls, proxies, caches, parental controls filters and the like will encounter any problems using this method? If so, how likely is this? Given that...
c++,c,caching,volatile
I understand what volatile does and what it doesn't do, taking the example from this question void waitForSemaphore() { volatile uint16_t* semPtr = WELL_KNOWN_SEM_ADDR;/*well known address to my semaphore*/ while ((*semPtr) != IS_OK_FOR_ME_TO_PROCEED); } my question is: in the presence of cpu cache, volatile can not guarantee the above works,...
caching,multicore,volatile,flush,context-switch
Recently, I discussed why there is a volatile mark at seq in Java Actors demo @volatile private var seq = 0L private def nextSeq: Long = { val next = seq seq += 1 next } One answer was that threads can be migrated and variables lost (other cores will...
caching,linux-kernel,arm,cortex-a,l2-cache
Context and goal I'd like to run two fully standalone applications on my Olimex A20 Lime platform that run a ARM Cortex-A7. The goal is to dedicate one core to each application. So far so good. Now I'd like to divide the L2 cache between the cores in the following...
angularjs,caching,orm,eloquent,slim
I've an admin panel which is a pure angularJS application, which uses REST api for data manipulation. REST api is built using SlimAPI framework and Laravel's Eloquent ORM. I'm facing caching issue in admin panel. Even though if a add new content to the system, it'll not show up in...
wordpress,git,caching,amazon-web-services
So a little background i am trying to setup a local staging and production environment using Elastic Beanstalk and Wordpress. So i have a local environment setup with git and i have the following in the .gitignore. ################# ## WordPress ################# .git-rewrite/ local-config.php .elasticbeanstalk/ Linux/ I have the ELB CLI...
php,mysql,caching
I'm with a quite annoying situation. One application's user is having problem getting updated data from my database. Here as follow: The user generate an insert statement into my database. When the user list these inserts, he only got the data that was previous there when he login into my...
php,caching,yii2,dataprovider
In my PostSearch model I have this code : public function search($params) { $query = Post::find()->where(['status' => 1]); $dataProvider = new ActiveDataProvider([ 'query' => $query, 'sort'=> ['defaultOrder' => ['id' => SORT_DESC]], 'pagination' => [ 'pageSize' => 10, ] ]); if (!($this->load($params) && $this->validate())) { return $dataProvider; } $query->andFilterWhere([ 'id' =>...
angularjs,caching,gruntjs,grunt-usemin
I'm using grunt filerev task to add cachebusters to files when their content changes. usemin task to replace the relevant file path with their revved versions where they are referred. Everything is setup well and they are working as expected / written in their documentation. I'll try to explain the...
c#,asp.net,caching,exchangewebservices
https://msdn.microsoft.com/en-us/library/office/dn659837%28v=exchg.150%29.aspx According to link above, we can caching the information for Autodiscover. The question is: 1) Should i serialize ExchangeService object to xml or just cache some of the properties (which properties) ? (I want to improve performance of the system because autodiscoverurl is too slow)...
java,caching,hadoop
I want to search for particular words in a file and display its count. When the word to be searched is a single word, I am able to do it by setting the configuration in the driver like below : Driver class : Configuration conf = new Configuration(); conf.set("wordtosearch", "fun");...