I recently had to use the serialize() function to store objects in Memcache. However, I realized that a lot of these objects (Propel objects precisely) were unnecessarily huge when stored: they had a lot of properties with quite long names having their default class value. That’s when I realized I could use the __sleep() function [...]
Categories
- Meta (3)
- PHP (14)
- Python (1)
- Symfony (15)
- Sysadmin (5)
- Technology (1)
- Uncategorized (2)
- Webdesign (1)
- WordPress (1)