ezsession: different expiration time / anonym. user -> registered user

Author Message

Georg Franz

Wednesday 01 September 2004 6:14:28 am

Hi,

I've some high traffic sites and my ezsession table is growing and growing ...

The main problem: Search engine spiders are "poluting" the table because they are "anonymous users". Each page view creates a new entry in the ezession table. (250 MB at the moment at one site).

So my suggestion:
Take two session expiration times instead of one.
One for registered users who are logged in (this could be 5-10 days e.g.)
One for anomy. users (this could be one day)

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Georg Franz

Wednesday 01 September 2004 6:39:12 am

By the way, a tip for ez newbies: The session table isn't cleaned by default. So outdated sessions still remain in the ezsession table.

To remove outdated sessions use the
update/common/scripts/cleanup.php script

or put following line in one of your cronjobs:

eZSessionGarbageCollector();

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 18:30:59
Script start
Timing: Jan 18 2025 18:30:59
Module start 'layout'
Timing: Jan 18 2025 18:30:59
Module start 'content'
Timing: Jan 18 2025 18:31:00
Module end 'content'
Timing: Jan 18 2025 18:31:00
Script end

Main resources:

Total runtime0.4717 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.3047152.6563
Module start 'layout' 0.00670.0091 741.960939.5234
Module start 'content' 0.01580.4546 781.4844489.1328
Module end 'content' 0.47040.0013 1,270.61728.0938
Script end 0.4717  1,278.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.6761160.0002
Check MTime0.00130.2767160.0001
Mysql Total
Database connection0.00090.182910.0009
Mysqli_queries0.418788.7544520.0081
Looping result0.00050.0966500.0000
Template Total0.431191.420.2156
Template load0.00200.431420.0010
Template processing0.429190.955420.2145
Template load and register function0.00010.023310.0001
states
state_id_array0.00100.212410.0010
state_identifier_array0.00110.242720.0006
Override
Cache load0.00170.3511180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.116410.0005
Fetch class attribute name0.00120.248930.0004
XML
Image XML parsing0.00060.131210.0006
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00080.1688160.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs