332 Posts
Kenneth
9 years ago
Topic

Hi,

Yesterday a site I just setup got 4k+ hits in a short amount of time. 

On the page I had a list module. And this didn't work very well.

I got:

"Fatal error: Out of memory (allocated 32768000) (tried to allocate 77 bytes) in /home/drm24/public_html/libraries/cck/base/list/list_inc_list_items.php on line 84"


How can I make sure this dosn't happen again the next time we get the same (and higher) boost in visitors?

Get a VIP membership
9 years ago
1
Level 1

Hi Kenneth,

You need to optimize your search. 

Check about matches, when you can push "exact" (Try to not use "like" in the SQL query, display it to check).

If it's a module I suppose you just need to display a maximum of predefined items (3, 5, 8, 10...). Edit the search configuration and push a limit to this maximum.

Check field values which are displayed: if you have "dynamic" field such as select dynamic replace it by a field alias (with text type) only in the content view.

Thanks.

332 Posts
Kenneth
9 years ago
0
Level 2

Nice tips, thanks a lot! Implemented them :)

Get a VIP membership