brant
brant

Reputation: 537

Should I serialize an array before caching with APC?

I am just getting started with APC to cache data and was wondering if I should store the data as an array or serialize the array before storing it?

The goal is to use the least amount of resources possible for both inserting and retrieving the data for display.

Upvotes: 0

Views: 343

Answers (1)

xdazz
xdazz

Reputation: 160963

No, it is not necessary. Because APC is memory storage, you can even store object without serialize.

Upvotes: 4

Related Questions