CodeCanyon

CacheManager

  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
  • United Kingdom
fudgesplit says

Hi

In what format does it store the data on disk?

http://techblog.procurios.nl/k/n618/news/view/34972/14863/Cache-a-large-array-JSON-serialize-or-var_export.html

I have non cache-sensitive data halfway down each page, can it exclude this and cache the rest of the page?

Do you have any screens with benchmarks to hand?

cheers

2 years ago
Author
Default-user mrferos replied

The data is stored by PHP ’s serialize function, this allows for more wholesome storage of objects which can recognize when they are being serialized and unserialized via the __sleep and __wakeup magic methods.

As to the second part of your inquiry, would you mind elaborating on what data specifically you are caching? If you wish to not use the cached data than simply do not use CacheManager to call this data forth.

In response to your want of benchmarks, they shall be up shortly.

2 years ago
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
  • Sweden
Stefan67 says

Hi, I think I have a similar question as fudgesplit had …

Say I have a piece of code in my php page that I do not want to be cached, but the rest of that page should be cached, can it be done?

As a very simple sample, on the page is a lot of db calls and info and at the end I have a pageview counter.

Can I cache all info but the counter; Both the db queries to update/read it and the html that display it ?

If not, that counter would not tick up, right ?

Something like

{DONT_CACHE} code to update counter … {/DONT_CACHE}

2 years ago
Author
Default-user mrferos replied

This CacheManager script isn’t intended to cache the output of pages but rather the output of method calls.

So, for instance of we’ve an object contained within $users. If we want to get a specific user and assuming $users has a method named getUser() then the code would be thus

$users->getUser(12);

However, having this call to the database each time would be inefficient and a waste of resources instead we implement a slightly more verbose but efficient technique.

http://pastie.org/1049986

Having said that, if page caching is a requested feature I will include it as per request. However, I would not recommend this sort of feature on any page that serves up wildly dynamic data which is to say nearly all modern web 2.0 applications.

2 years ago

by
by
by
by
by