Welcome Guest, Not a member yet? Register   Sign In
Cache problem
#1

(This post was last modified: 12-24-2015, 07:24 AM by scion.)

Hi there!

I write app that get data from SOAP webservice - list of properties something like that

<properties>
  <property>
     <id>1</id>
     <name>House</name>
     .... < 15 fields
   </property>
   ....
</properties>

Unfortunately, there is no parameters in request to webservice for pagination like offset or something. Just parameters for search

for example, id or name, or property type and so on.

So I am always get all list of properties and do pagination from an array of properties.

And now I am thinking of some sort caching cause for different pages I have the same array of properties.

Currently I get list and write all array in cache  APP/cache folder, and then use it for pagination.

But is this is the best approach? Cause I think that property search will be have so many variations and I need all them write to

cache! How are u think, maybe create some sort of self destructive caching for a while or clean up cache folder with cron once or

more per day?

Any suggestions will be appreciated, many thanks guys
Reply
#2

Any advices?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB